Module Name: src
Committed By: vanhu
Date: Wed Sep 22 13:37:35 UTC 2010
Modified Files:
src/crypto/dist/ipsec-tools/src/racoon: admin.c
Log Message:
get the correct length of username when processing ADMIN_LOGOUT_USER, patch by
rweikusat (at) mssgmbh.com
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/crypto/dist/ipsec-tools/src/racoon/admin.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/dist/ipsec-tools/src/racoon/admin.c
diff -u src/crypto/dist/ipsec-tools/src/racoon/admin.c:1.32 src/crypto/dist/ipsec-tools/src/racoon/admin.c:1.33
--- src/crypto/dist/ipsec-tools/src/racoon/admin.c:1.32 Thu Sep 3 09:29:07 2009
+++ src/crypto/dist/ipsec-tools/src/racoon/admin.c Wed Sep 22 13:37:35 2010
@@ -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,