projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
973b9a9
)
Handle null OID values in gss_oid_equal()
author
Greg Hudson
<ghudson@mit.edu>
Sat, 16 Apr 2011 18:10:23 +0000
(18:10 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Sat, 16 Apr 2011 18:10:23 +0000
(18:10 +0000)
ticket: 6890
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24885
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/gssapi/mechglue/g_oid_ops.c
patch
|
blob
|
history
diff --git
a/src/lib/gssapi/mechglue/g_oid_ops.c
b/src/lib/gssapi/mechglue/g_oid_ops.c
index d750368ead020365d5e1e4a275b3ce7f898d3fdf..e0be538cca502e12d88f15824dcf5749281e2d60 100644
(file)
--- a/
src/lib/gssapi/mechglue/g_oid_ops.c
+++ b/
src/lib/gssapi/mechglue/g_oid_ops.c
@@
-108,5
+108,8
@@
gss_oid_equal(
gss_const_OID first_oid,
gss_const_OID second_oid)
{
+ /* GSS_C_NO_OID doesn't match itself, per draft-josefsson-gss-capsulate. */
+ if (first_oid == GSS_C_NO_OID || second_oid == GSS_C_NO_OID)
+ return 0;
return g_OID_equal(first_oid, second_oid);
}