Author: lha
Date: 2006-12-14 11:01:35 +0000 (Thu, 14 Dec 2006)
New Revision: 690

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

Log:
(GSS_KRB5_SET_DEFAULT_REALM_X): don't fail on success.
Bug report from Stefan Metzmacher.

Modified:
   trunk/heimdal/lib/gssapi/krb5/set_sec_context_option.c


Changeset:
Modified: trunk/heimdal/lib/gssapi/krb5/set_sec_context_option.c
===================================================================
--- trunk/heimdal/lib/gssapi/krb5/set_sec_context_option.c      2006-12-12 
23:45:23 UTC (rev 689)
+++ trunk/heimdal/lib/gssapi/krb5/set_sec_context_option.c      2006-12-14 
11:01:35 UTC (rev 690)
@@ -129,7 +129,7 @@
            return GSS_S_CALL_INACCESSIBLE_READ;
        }
        str = malloc(value->length + 1);
-       if (str) {
+       if (str == NULL) {
            *minor_status = 0;
            return GSS_S_UNAVAILABLE;
        }

Reply via email to