Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/openssh/dist fix wrong argument to sizeof.



details:   https://anonhg.NetBSD.org/src/rev/a87c3de768a8
branches:  trunk
changeset: 790753:a87c3de768a8
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 20 03:34:58 2013 +0000

description:
fix wrong argument to sizeof.

diffstat:

 crypto/external/bsd/openssh/dist/auth1.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r d1531a558ee7 -r a87c3de768a8 crypto/external/bsd/openssh/dist/auth1.c
--- a/crypto/external/bsd/openssh/dist/auth1.c  Sun Oct 20 03:14:34 2013 +0000
+++ b/crypto/external/bsd/openssh/dist/auth1.c  Sun Oct 20 03:34:58 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auth1.c,v 1.6 2013/03/29 16:19:44 christos Exp $       */
+/*     $NetBSD: auth1.c,v 1.7 2013/10/20 03:34:58 christos Exp $       */
 /* $OpenBSD: auth1.c,v 1.77 2012/12/02 20:34:09 djm Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <ylo%cs.hut.fi@localhost>, Espoo, Finland
@@ -12,7 +12,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: auth1.c,v 1.6 2013/03/29 16:19:44 christos Exp $");
+__RCSID("$NetBSD: auth1.c,v 1.7 2013/10/20 03:34:58 christos Exp $");
 #include <sys/types.h>
 #include <sys/queue.h>
 
@@ -162,7 +162,7 @@
 
                if (PRIVSEP(auth_krb4(authctxt, &tkt, &client_user, &reply))) {
                        authenticated = 1;
-                       snprintf(info, sizeof(info), " tktuser %.100s",
+                       snprintf(info, infolen, " tktuser %.100s",
                            client_user);
 
                        packet_start(SSH_SMSG_AUTH_KERBEROS_RESPONSE);
@@ -182,7 +182,7 @@
 
                if (PRIVSEP(auth_krb5(authctxt, &tkt, &client_user, &reply))) {
                        authenticated = 1;
-                       snprintf(info, sizeof(info), " tktuser %.100s",
+                       snprintf(info, infolen, " tktuser %.100s",
                            client_user);
 
                        /* Send response to client */



Home | Main Index | Thread Index | Old Index