Browse Source

fix segfault due to wrong pointer being passed to parse_response_code.

inspired by Raimar Döffinger
wip/ssl-fprint
Oswald Buddenhagen 20 years ago
parent
commit
e75ebf75f6
  1. 2
      src/drv_imap.c

2
src/drv_imap.c

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

Loading…
Cancel
Save