SVACE issue fix 95/270395/1
authorAbhimanyu <abhimanyu1.s@samsung.com>
Mon, 31 Jan 2022 18:30:41 +0000 (00:00 +0530)
committerAbhimanyu <abhimanyu1.s@samsung.com>
Mon, 31 Jan 2022 18:31:21 +0000 (00:01 +0530)
Change-Id: Id89abae4c19469040e1f4e542c99b9cd5bc6d535
Signed-off-by: Abhimanyu <abhimanyu1.s@samsung.com>
imap-2007e/c-client/imap4r1.c

index 18b0cf3..609936e 100755 (executable)
@@ -4171,6 +4171,7 @@ void imap_parse_unsolicited (MAILSTREAM *stream,IMAPPARSEDREPLY *reply)
                                /* parse Lisp-form property list */
       while (prop = (strtok_r (t," )",&r))) {
        t = strtok_r (NIL,"\n",&r);
+       if (t == NULL) mm_log(r,ERROR);
        INIT_GETS (md,stream,elt->msgno,NIL,0,0);
        e = NIL;                /* not pointing at any envelope yet */
                                /* canonicalize property, parse it */