[Fedora-directory-commits] ldapserver/lib/libaccess lasdns.cpp, 1.6, 1.7
Nathan Kinder (nkinder)
fedora-directory-commits at redhat.com
Wed Nov 8 21:23:45 UTC 2006
Author: nkinder
Update of /cvs/dirsec/ldapserver/lib/libaccess
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv561
Modified Files:
lasdns.cpp
Log Message:
Resolves: 214682
Summary: Fixed usage of PL_strncpyz that was causing DNS-based ACIs to behave incorrectly.
Index: lasdns.cpp
===================================================================
RCS file: /cvs/dirsec/ldapserver/lib/libaccess/lasdns.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- lasdns.cpp 11 Apr 2006 02:14:53 -0000 1.6
+++ lasdns.cpp 8 Nov 2006 21:23:42 -0000 1.7
@@ -168,7 +168,7 @@
if (delimiter >= maxsize) {
delimiter = maxsize-1;
}
- PL_strncpyz(token, attr_pattern, delimiter);
+ PL_strncpyz(token, attr_pattern, delimiter + 1);
token[delimiter] = '\0';
/* Skip any white space after the token */
More information about the Fedora-directory-commits
mailing list