]> granicus.if.org Git - mutt/commit
Remove trailing null count from gss_buffer_desc.length field.
authorKevin McCarthy <kevin@8t8.us>
Sat, 14 Apr 2018 02:03:29 +0000 (19:03 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sat, 14 Apr 2018 02:03:29 +0000 (19:03 -0700)
commitf52ee2f7f7a06b547507981b977a7cfbc88850a1
treec2427137d222975831b2cc4f076416b7e687fcd7
parenta550d535b3aafecac7dd8906c73311fd49802804
Remove trailing null count from gss_buffer_desc.length field.

RFC 2744 section 3.2.2 clearly states that trailing NULL characters
are not to be included in the length field, and are not to be assumed
to be present in the value field.

Thanks to Greg Hudson, who recently debugged this same issue with
fetchmail, and kindly took the time to look at Mutt's code too.
imap/auth_gss.c