Fix for CVE-2011-4718: Fix for first session