Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ipsec-tools/src/racoon get the correct length of...



details:   https://anonhg.NetBSD.org/src/rev/ad1db1e5da5d
branches:  trunk
changeset: 757775:ad1db1e5da5d
user:      vanhu <vanhu%NetBSD.org@localhost>
date:      Wed Sep 22 13:37:35 2010 +0000

description:
get the correct length of username when processing ADMIN_LOGOUT_USER, patch by rweikusat (at) mssgmbh.com

diffstat:

 crypto/dist/ipsec-tools/src/racoon/admin.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 345e4977a57c -r ad1db1e5da5d crypto/dist/ipsec-tools/src/racoon/admin.c
--- a/crypto/dist/ipsec-tools/src/racoon/admin.c        Wed Sep 22 07:34:51 2010 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/admin.c        Wed Sep 22 13:37:35 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: admin.c,v 1.32 2009/09/03 09:29:07 tteras Exp $        */
+/*     $NetBSD: admin.c,v 1.33 2010/09/22 13:37:35 vanhu Exp $ */
 
 /* Id: admin.c,v 1.25 2006/04/06 14:31:04 manubsd Exp */
 
@@ -329,7 +329,7 @@
        case ADMIN_LOGOUT_USER: {
                struct ph1handle *iph1;
                char user[LOGINLEN+1];
-               int found = 0, len = com->ac_len - sizeof(com);
+               int found = 0, len = com->ac_len - sizeof(*com);
 
                if (len > LOGINLEN) {
                        plog(LLV_ERROR, LOCATION, NULL,



Home | Main Index | Thread Index | Old Index