diff options
author | Nathan Kinder <nkinder@redhat.com> | 2006-11-08 21:23:42 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2006-11-08 21:23:42 +0000 |
commit | 043d2e558ee5d232d67f4109045eda885e812819 (patch) | |
tree | 7a0e45d2d4fe9f72a5f7fe87e9ccc1c89ca8a5fb /lib/libaccess/lasdns.cpp | |
parent | cf5f003d8316aa3ea1bf1dee563a702043e56434 (diff) | |
download | ds-043d2e558ee5d232d67f4109045eda885e812819.tar.gz ds-043d2e558ee5d232d67f4109045eda885e812819.tar.xz ds-043d2e558ee5d232d67f4109045eda885e812819.zip |
Resolves: 214682
Summary: Fixed usage of PL_strncpyz that was causing DNS-based ACIs to behave incorrectly.
Diffstat (limited to 'lib/libaccess/lasdns.cpp')
-rw-r--r-- | lib/libaccess/lasdns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libaccess/lasdns.cpp b/lib/libaccess/lasdns.cpp index e3a541bd..904a15e4 100644 --- a/lib/libaccess/lasdns.cpp +++ b/lib/libaccess/lasdns.cpp @@ -168,7 +168,7 @@ LASDnsBuild(NSErr_t *errp, char *attr_pattern, LASDnsContext_t *context, int ali 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 */ |