summaryrefslogtreecommitdiff
path: root/usr.sbin/pccard
diff options
context:
space:
mode:
authorMitsuru IWASAKI <iwasaki@FreeBSD.org>2001-11-29 14:33:57 +0000
committerMitsuru IWASAKI <iwasaki@FreeBSD.org>2001-11-29 14:33:57 +0000
commitfcb24d01b034410fe8b44036349a664d9a8db1da (patch)
tree66cde9a081fac59b9793d66a9e3777e592753632 /usr.sbin/pccard
parent2d69bc9b8e2cd98d2ec2453c822b32faab8e7c86 (diff)
downloadsrc-test2-fcb24d01b034410fe8b44036349a664d9a8db1da.tar.gz
src-test2-fcb24d01b034410fe8b44036349a664d9a8db1da.zip
Notes
Diffstat (limited to 'usr.sbin/pccard')
-rw-r--r--usr.sbin/pccard/pccardd/cardd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c
index 9c8dff19662e..b2ca965a889c 100644
--- a/usr.sbin/pccard/pccardd/cardd.c
+++ b/usr.sbin/pccard/pccardd/cardd.c
@@ -246,6 +246,10 @@ cis_strcmp(char *db, char *cis)
db++;
} else {
/* otherwise, matching by strncmp() */
+ if (n != strlen(cis)) {
+ return -1;
+ }
+
return strncmp(db, cis, n);
}
p = xmalloc(n);