fix uninitialized variable major
authorLuke Howard <lukeh@padl.com>
Tue, 29 Mar 2011 15:57:48 +0000 (02:57 +1100)
committerLuke Howard <lukeh@padl.com>
Tue, 29 Mar 2011 15:57:48 +0000 (02:57 +1100)
mech_eap/util_attr.cpp

index 384769f..a25d2ff 100644 (file)
@@ -680,6 +680,7 @@ gss_eap_attr_ctx::mapException(OM_uint32 *minor, std::exception &e) const
 
     /* Errors we handle ourselves */
     if (typeid(e) == typeid(std::bad_alloc)) {
+        major = GSS_S_FAILURE;
         *minor = ENOMEM;
         goto cleanup;
     } else if (typeid(e) == typeid(std::runtime_error)) {