From: Aleš Křenek Date: Mon, 28 Nov 2005 17:37:52 +0000 (+0000) Subject: initialise len and code when reading protocol error -- garbage resitance X-Git-Tag: glite-lb-client_R_2_1_1~2 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=4674c4aab2531f1c7e171bb46597e1d662ac95a7;p=jra1mw.git initialise len and code when reading protocol error -- garbage resitance --- diff --git a/org.glite.lb.client/src/connection.c b/org.glite.lb.client/src/connection.c index 33fdf78..bbd03ee 100644 --- a/org.glite.lb.client/src/connection.c +++ b/org.glite.lb.client/src/connection.c @@ -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);