Fix deadlock on wrongly parsed limit parameter
authorDennis Schafroth <dennis@indexdata.com>
Mon, 29 Aug 2011 13:52:12 +0000 (13:52 +0000)
committerDennis Schafroth <dennis@indexdata.com>
Mon, 29 Aug 2011 13:52:12 +0000 (13:52 +0000)
src/session.c

index 622d6d6..373dd49 100644 (file)
@@ -633,6 +633,7 @@ enum pazpar2_error_code search(struct session *se,
     if (!facet_limits)
     {
         *addinfo = "limit";
+        session_leave(se);
         return PAZPAR2_MALFORMED_PARAMETER_VALUE;
     }
     for (l = se->clients; l; l = l->next)