From ac9ea0628af2bf1dc91b98a4282a4f3ec2ad9d5a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Thu, 3 Nov 2005 20:16:31 +0000 Subject: [PATCH] merged bug#11387 fixes from HEAD --- org.glite.lb.client/src/prod_proto.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/org.glite.lb.client/src/prod_proto.c b/org.glite.lb.client/src/prod_proto.c index 7d24851..81bc727 100644 --- a/org.glite.lb.client/src/prod_proto.c +++ b/org.glite.lb.client/src/prod_proto.c @@ -94,15 +94,17 @@ static int get_reply_plain(edg_wll_Context context, edg_wll_PlainConnection *conn, char **buf, int *code_min) { - char *msg; + char *msg=NULL; int len, code; code = 0; tmp_context = context; tmp_conn = conn; len = read_il_data(&msg, plain_reader); - if(len < 0) + if(len < 0) { + edg_wll_SetError(context, LB_PROTO, "get_reply_plain(): error reading message"); goto get_reply_plain_end; + } if(decode_il_reply(&code, code_min, buf, msg) < 0) { edg_wll_SetError(context, LB_PROTO, "get_reply_plain(): error decoding message"); @@ -140,14 +142,16 @@ static int get_reply_gss(edg_wll_Context context, edg_wll_GssConnection *conn, char **buf, int *code_min) { - char *msg; + char *msg=NULL; int code; tmp_context = context; tmp_gss_conn = conn; code = read_il_data(&msg, gss_reader); - if(code < 0) + if(code < 0) { + edg_wll_SetError(context, LB_PROTO, "get_reply_gss(): error reading reply"); goto get_reply_gss_end; + } if(decode_il_reply(&code, code_min, buf, msg) < 0) { edg_wll_SetError(context, LB_PROTO, "get_reply_gss(): error decoding reply"); -- 1.8.2.3