Commit 796e1a47 authored by deuce's avatar deuce
Browse files

Fix issue where the last line of a multi-line response wasn't searched

for a match... which caused a memory leak.

Thanks scan-build!
parent ec01c9d6
......@@ -572,6 +572,7 @@ static int sockgetrsp_opt(SOCKET socket, CRYPT_SESSION sess, char* rsp, char *op
}
mopt[3] = ' ';
if (strncmp(buf, mopt, moptlen) == 0)
ret = 1;
free(mopt);
if(startup->options&MAIL_OPT_DEBUG_RX_RSP)
lprintf(LOG_DEBUG,"%04d RX%s: %s",socket,sess != -1 ? "S" : "", buf);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment