summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-11-02 18:27:05 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-03 22:45:57 +0900
commit618ec81abbda91d867ac43320c7fd3e8fcc23e78 (patch)
treebd91a28d335a1694d854e4ef1852c749b0dfb25e /path.c
parentimap-send: handle NULL return of next_arg() (diff)
downloadtgif-618ec81abbda91d867ac43320c7fd3e8fcc23e78.tar.xz
imap-send: handle missing response codes gracefully
Response codes are optional. Exit parse_response_code() early if it's passed a NULL string, indicating that we reached the end of the reply. This avoids dereferencing said NULL pointer. Noticed-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
0 files changed, 0 insertions, 0 deletions