accept_sec_context: only destroy request if it is populated
authorSam Hartman <hartmans@debian.org>
Mon, 28 Feb 2011 21:37:24 +0000 (16:37 -0500)
committerSam Hartman <hartmans@debian.org>
Mon, 28 Feb 2011 21:46:06 +0000 (16:46 -0500)
accept_sec_context.c

index b3a56c6..1223a80 100644 (file)
@@ -433,7 +433,8 @@ eapGssSmAcceptAuthenticate(OM_uint32 *minor,
     major = GSS_S_CONTINUE_NEEDED;
 
 cleanup:
-    rs_request_destroy(request);
+    if (request)
+      rs_request_destroy(request);
 
     return major;
 }