Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/heimdal/lib/gssapi Fix reversed test.



details:   https://anonhg.NetBSD.org/src/rev/a67d92cb0e43
branches:  trunk
changeset: 499449:a67d92cb0e43
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon Nov 20 14:08:12 2000 +0000

description:
Fix reversed test.

diffstat:

 crypto/dist/heimdal/lib/gssapi/acquire_cred.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r dec6770499c1 -r a67d92cb0e43 crypto/dist/heimdal/lib/gssapi/acquire_cred.c
--- a/crypto/dist/heimdal/lib/gssapi/acquire_cred.c     Mon Nov 20 12:12:18 2000 +0000
+++ b/crypto/dist/heimdal/lib/gssapi/acquire_cred.c     Mon Nov 20 14:08:12 2000 +0000
@@ -33,7 +33,7 @@
 
 #include "gssapi_locl.h"
 
-RCSID("$Id: acquire_cred.c,v 1.2 2000/11/06 15:06:51 fvdl Exp $");
+RCSID("$Id: acquire_cred.c,v 1.3 2000/11/20 14:08:12 fvdl Exp $");
 
 OM_uint32 gss_acquire_cred
            (OM_uint32 * minor_status,
@@ -50,7 +50,7 @@
     OM_uint32 ret;
     krb5_principal def_princ;
     krb5_ccache ccache;
-    krb5_error_code pret = 0, kret = 0;
+    krb5_error_code pret = -1, kret = 0;
     krb5_keytab kt;
     krb5_creds cred;
     krb5_get_init_creds_opt opt;
@@ -130,7 +130,7 @@
     *output_cred_handle = handle;
 
 out:
-    if (pret != 0)
+    if (pret == 0)
        krb5_free_principal(gssapi_krb5_context, def_princ);
 
     if (kret != 0) {



Home | Main Index | Thread Index | Old Index