summaryrefslogtreecommitdiff
path: root/security/pam-dbm/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'security/pam-dbm/patches/patch-ab')
-rw-r--r--security/pam-dbm/patches/patch-ab15
1 files changed, 15 insertions, 0 deletions
diff --git a/security/pam-dbm/patches/patch-ab b/security/pam-dbm/patches/patch-ab
new file mode 100644
index 00000000000..c82f3fdea2c
--- /dev/null
+++ b/security/pam-dbm/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2010/03/21 06:54:10 scottr Exp $
+--- pam_dbm.c.orig 2003-12-20 08:19:18.000000000 -0600
++++ pam_dbm.c
+@@ -78,10 +78,10 @@
+ "pam_dbm_authenticate: dbm_fetch(\"%s\") failed", key);
+ return -1;
+ }
++ strlcpy(buf, valdat.dptr, buflen);
+
+ dbm_close(dbm);
+
+- strlcpy(buf, valdat.dptr, buflen);
+ return 0;
+ }
+