allow complete/authenticated params to be NULL
[moonshot.git] / mech_eap / util_attr.cpp
index 9cdcc20..4da585d 100644 (file)
@@ -882,8 +882,10 @@ gssEapGetNameAttribute(OM_uint32 *minor,
                        gss_buffer_t display_value,
                        int *more)
 {
-    *authenticated = 0;
-    *complete = 0;
+    if (authenticated != NULL)
+        *authenticated = 0;
+    if (complete != NULL)
+        *complete = 0;
 
     if (value != NULL) {
         value->length = 0;