fix segfault due to wrong pointer being passed to parse_response_code.

inspired by Raimar Döffinger
This commit is contained in:
Oswald Buddenhagen 2004-10-17 09:00:15 +00:00
parent 6741bc94d9
commit e75ebf75f6

View File

@ -1026,7 +1026,7 @@ get_cmd_result( imap_store_t *ctx, struct imap_cmd *tcmd )
cmdp->cmd : "LOGIN <user> <pass>",
arg, cmd ? cmd : "");
}
if ((resp2 = parse_response_code( ctx, cmdp->cb.ctx, cmd )) > resp)
if ((resp2 = parse_response_code( ctx, &cmdp->cb, cmd )) > resp)
resp = resp2;
normal:
if (cmdp->cb.done)