double check session id has been initialized
authorMartin Willi <martin@strongswan.org>
Thu, 10 Sep 2009 18:51:43 +0000 (20:51 +0200)
committerMartin Willi <martin@strongswan.org>
Thu, 10 Sep 2009 18:51:43 +0000 (20:51 +0200)
src/libfast/dispatcher.c

index c6ac983..e99923d 100644 (file)
@@ -259,7 +259,7 @@ static void dispatch(private_dispatcher_t *this)
                                continue;
                        }
                        /* find by session ID. Prevent session hijacking by host check */
-                       if (!found && sid &&
+                       if (!found && sid && current->session->get_sid(current->session) &&
                                streq(current->session->get_sid(current->session), sid) &&
                                streq(current->host, request->get_host(request)))
                        {