Closed macosforgebot closed 14 years ago
rbasch@… originally submitted this as attachment:pykerberos-gsswrap.patch:ticket:355
patch to fix calculation of username string length
@cyrusdaboo originally submitted this as comment:1:ticket:355
Fixed in r4895.
rbasch@… originally submitted this as ticket:355
In PyKerberos 1.1, authenticate_gss_client_wrap() (src/kerberosgss.c) miscalculates the length of the username string when wrapping it, by including the terminating null character in the length. This results in authentication failures. I am attaching a patch that seems to fix the problem.