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");
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");