[dovecot-cvs] dovecot/src/auth mech-gssapi.c,1.5.2.3,1.5.2.4

tss at dovecot.org tss at dovecot.org
Sun Mar 11 23:36:38 EET 2007


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv9126

Modified Files:
      Tag: branch_1_0
	mech-gssapi.c 
Log Message:
Crashfix in some error conditions



Index: mech-gssapi.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/mech-gssapi.c,v
retrieving revision 1.5.2.3
retrieving revision 1.5.2.4
diff -u -d -r1.5.2.3 -r1.5.2.4
--- mech-gssapi.c	3 Dec 2006 14:12:21 -0000	1.5.2.3
+++ mech-gssapi.c	11 Mar 2007 21:36:36 -0000	1.5.2.4
@@ -391,11 +391,14 @@
 
 	major_status = gss_release_cred(&minor_status,
 					&gssapi_request->service_cred);
-	major_status = gss_release_name(&minor_status,
-					&gssapi_request->authn_name);
-	major_status = gss_release_name(&minor_status,
-					&gssapi_request->authz_name);
-
+	if (gssapi_request->authn_name != GSS_C_NO_NAME) {
+		major_status = gss_release_name(&minor_status,
+						&gssapi_request->authn_name);
+	}
+	if (gssapi_request->authz_name != GSS_C_NO_NAME) {
+		major_status = gss_release_name(&minor_status,
+						&gssapi_request->authz_name);
+	}
 	pool_unref(request->pool);
 }
 



More information about the dovecot-cvs mailing list