]> git.ipfire.org Git - thirdparty/git.git/commit - imap-send.c
imap-send: fix CRAM-MD5 response calculation
authorKazuki Yamaguchi <k@rhe.jp>
Fri, 8 Apr 2016 14:02:30 +0000 (23:02 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Apr 2016 22:28:09 +0000 (15:28 -0700)
commiteb94ee7f0f38cd24270bfb2f655cdec214a4d6e0
treea7dc97cf21f471dd34cc52a7ce9cbfe9668f74eb
parent6c50a575952fcffa0df0cb435e9e3f4eab74b1bf
imap-send: fix CRAM-MD5 response calculation

Remove extra + 1 from resp_len, the length of the byte sequence to be
Base64 encoded and passed to the server as the response. Or the response
incorrectly contains an extra \0.

Signed-off-by: Kazuki Yamaguchi <k@rhe.jp>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c