summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 9c8dff1..b2ca965 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);
OpenPOWER on IntegriCloud