fix pointer error
authorLuke Howard <lukeh@padl.com>
Sat, 25 Sep 2010 21:06:56 +0000 (23:06 +0200)
committerLuke Howard <lukeh@padl.com>
Sat, 25 Sep 2010 21:06:56 +0000 (23:06 +0200)
inquire_attrs_for_mech.c

index 96f1a8c..ffd33bd 100644 (file)
@@ -53,7 +53,7 @@ gss_inquire_attrs_for_mech(OM_uint32 *minor,
 {
     OM_uint32 major, tmpMinor;
 
-    if (mech_attrs != GSS_C_NO_OID_SET) {
+    if (mech_attrs != NULL) {
         major = gss_create_empty_oid_set(minor, mech_attrs);
         if (GSS_ERROR(major))
             goto cleanup;
@@ -79,7 +79,7 @@ gss_inquire_attrs_for_mech(OM_uint32 *minor,
 #endif
     }
 
-    if (known_mech_attrs != GSS_C_NO_OID_SET) {
+    if (known_mech_attrs != NULL) {
         major = gss_create_empty_oid_set(minor, known_mech_attrs);
         if (GSS_ERROR(major))
             goto cleanup;