]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2002/02/15 23:54:10
authormouring <mouring>
Tue, 26 Feb 2002 17:46:11 +0000 (17:46 +0000)
committermouring <mouring>
Tue, 26 Feb 2002 17:46:11 +0000 (17:46 +0000)
     [auth-krb5.c]
     krb5_get_err_text() does not like context==NULL; he@nordu.net via google;
     ok provos@

ChangeLog
auth-krb5.c

index a019d2d5220058bf920f3e76a863db40ba9899ff..78a8e4aba86162b736832d6ae8b0e651bbf771b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
    [configure.ac defines.h] modify previous SCO3 fix to not break Solaris 7
    [acconfig.h] remove unused HAVE_REGCOMP
  - (stevesk) openbsd-compat/base64.h: typo in comment
+ - (bal) OpenBSD CVS Sync
+   - markus@cvs.openbsd.org 2002/02/15 23:54:10
+     [auth-krb5.c]
+     krb5_get_err_text() does not like context==NULL; he@nordu.net via google; 
+     ok provos@
 
 20020225
  - (bal) Last AIX patch.  Moved aix_usrinfo() outside of do_setuserconext()
index bf24120800989b02ef11e211fefe8766fdcf5c92..aaf146e76f51ffdb0984439d46f40eb678d17fa3 100644 (file)
@@ -2,7 +2,7 @@
  *    Kerberos v5 authentication and ticket-passing routines.
  * 
  * $FreeBSD: src/crypto/openssh/auth-krb5.c,v 1.6 2001/02/13 16:58:04 assar Exp $
- * $OpenBSD: auth-krb5.c,v 1.4 2002/01/27 15:12:09 markus Exp $
+ * $OpenBSD: auth-krb5.c,v 1.5 2002/02/15 23:54:10 markus Exp $
  */
 
 #include "includes.h"
@@ -118,9 +118,14 @@ auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client)
        if (reply.length)
                xfree(reply.data);
 
-       if (problem)
-               debug("Kerberos v5 authentication failed: %s",
-                   krb5_get_err_text(authctxt->krb5_ctx, problem));
+       if (problem) {
+               if (authctxt->krb5_ctx != NULL)
+                       debug("Kerberos v5 authentication failed: %s",
+                           krb5_get_err_text(authctxt->krb5_ctx, problem));
+               else
+                       debug("Kerberos v5 authentication failed: %d",
+                           problem);
+       }
 
        return (ret);
 }
@@ -222,8 +227,12 @@ auth_krb5_password(Authctxt *authctxt, const char *password)
        restore_uid();
 
        if (problem) {
-               debug("Kerberos password authentication failed: %s",
-                   krb5_get_err_text(authctxt->krb5_ctx, problem));
+               if (authctxt->krb5_ctx != NULL)
+                       debug("Kerberos password authentication failed: %s",
+                           krb5_get_err_text(authctxt->krb5_ctx, problem));
+               else
+                       debug("Kerberos password authentication failed: %d",
+                           problem);
 
                krb5_cleanup_proc(authctxt);
 
This page took 0.047851 seconds and 5 git commands to generate.