summary refs log tree commit diff
path: root/nscd/nscd_netgroup.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2013-06-10 14:39:09 +0200
committerAndreas Schwab <schwab@suse.de>2013-06-11 11:29:50 +0200
commit50fd745b4dec07e8e213cf2703b5cabcfa128225 (patch)
treec0341dcf5c4f3275cded07abeec6eefb3e427959 /nscd/nscd_netgroup.c
parent3ee7e9fe34a96cfbf2d39879c21eb36e70471ad1 (diff)
downloadglibc-50fd745b4dec07e8e213cf2703b5cabcfa128225.tar.gz
glibc-50fd745b4dec07e8e213cf2703b5cabcfa128225.tar.xz
glibc-50fd745b4dec07e8e213cf2703b5cabcfa128225.zip
Fix handling of netgroup cache in nscd
Diffstat (limited to 'nscd/nscd_netgroup.c')
-rw-r--r--nscd/nscd_netgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/nscd_netgroup.c b/nscd/nscd_netgroup.c
index cac4ebfcd3..acb2c81457 100644
--- a/nscd/nscd_netgroup.c
+++ b/nscd/nscd_netgroup.c
@@ -48,7 +48,7 @@ __nscd_setnetgrent (const char *group, struct __netgrent *datap)
 {
   int gc_cycle;
   int nretries = 0;
-  size_t group_len = strlen (group);
+  size_t group_len = strlen (group) + 1;
 
   /* If the mapping is available, try to search there instead of
      communicating with the nscd.  */