svn commit: lorikeet r697 - in trunk/heimdal/lib/gssapi/mech: .

abartlet at samba.org abartlet at samba.org
Tue Jan 9 02:48:26 GMT 2007


Author: abartlet
Date: 2007-01-09 02:48:25 +0000 (Tue, 09 Jan 2007)
New Revision: 697

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=697

Log:
Make it easier to NULL out a mech in the build system.

Andrew Bartlett

Modified:
   trunk/heimdal/lib/gssapi/mech/gss_mech_switch.c


Changeset:
Modified: trunk/heimdal/lib/gssapi/mech/gss_mech_switch.c
===================================================================
--- trunk/heimdal/lib/gssapi/mech/gss_mech_switch.c	2007-01-08 01:12:06 UTC (rev 696)
+++ trunk/heimdal/lib/gssapi/mech/gss_mech_switch.c	2007-01-09 02:48:25 UTC (rev 697)
@@ -169,6 +169,8 @@
 {
     struct _gss_mech_switch *m;
     OM_uint32 minor_status;
+    if (!mech) 
+        return 0;
 
     m = malloc(sizeof(*m));
     if (m == NULL)



More information about the samba-cvs mailing list