diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-05-08 23:30:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:05:45 -0500 |
commit | bfff6b0e640b3b3456ec1d9d26da0bd80a08585f (patch) | |
tree | 5c4b3154252464e0dc12f8cda6f109b98493724f /source4/heimdal/lib/gssapi/8003.c | |
parent | d4b8cb0bb502f6daf0ddf93837779e0a805af7d7 (diff) | |
download | samba-bfff6b0e640b3b3456ec1d9d26da0bd80a08585f.tar.gz samba-bfff6b0e640b3b3456ec1d9d26da0bd80a08585f.tar.bz2 samba-bfff6b0e640b3b3456ec1d9d26da0bd80a08585f.zip |
r15515: Syncronsise with current lorikeet-heimdal.
Andrew Bartlett
(This used to be commit 0132312124260f74001546a34ff96db89d72b7f6)
Diffstat (limited to 'source4/heimdal/lib/gssapi/8003.c')
-rw-r--r-- | source4/heimdal/lib/gssapi/8003.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source4/heimdal/lib/gssapi/8003.c b/source4/heimdal/lib/gssapi/8003.c index 73ecc90ea8..359bb6e715 100644 --- a/source4/heimdal/lib/gssapi/8003.c +++ b/source4/heimdal/lib/gssapi/8003.c @@ -184,14 +184,9 @@ gssapi_krb5_verify_8003_checksum( *minor_status = 0; return GSS_S_BAD_BINDINGS; } - - if(cksum->cksumtype != CKSUMTYPE_GSSAPI) { - *minor_status = 0; - return GSS_S_BAD_BINDINGS; - } - + /* XXX should handle checksums > 24 bytes */ - if(cksum->checksum.length < 24) { + if(cksum->cksumtype != CKSUMTYPE_GSSAPI || cksum->checksum.length < 24) { *minor_status = 0; return GSS_S_BAD_BINDINGS; } |