initialise len and code when reading protocol error -- garbage resitance
authorAleš Křenek <ljocha@ics.muni.cz>
Mon, 28 Nov 2005 17:37:52 +0000 (17:37 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Mon, 28 Nov 2005 17:37:52 +0000 (17:37 +0000)
org.glite.lb.client/src/connection.c

index 33fdf78..bbd03ee 100644 (file)
@@ -253,7 +253,7 @@ int http_check_status(
        char *response)
 
 {
-       int     code,len;
+       int     code = HTTP_INTERNAL,len = 0;
 
        edg_wll_ResetError(ctx);
        sscanf(response,"HTTP/%*f %n%d",&len,&code);