diff options
author | Rich Megginson <rmeggins@redhat.com> | 2010-03-04 14:50:38 -0700 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2010-03-05 08:08:59 -0700 |
commit | d66eb3dd9fdb9648b5058161bf8a7740a16fb2d8 (patch) | |
tree | 7aee416d1eccd6a71e361022671cba4409ae25fc | |
parent | 64db7873c668ec17fc92aedc37cbd9f476ded605 (diff) | |
download | ds-d66eb3dd9fdb9648b5058161bf8a7740a16fb2d8.tar.gz ds-d66eb3dd9fdb9648b5058161bf8a7740a16fb2d8.tar.xz ds-d66eb3dd9fdb9648b5058161bf8a7740a16fb2d8.zip |
Bug 551198 - LDAPI: incorrect logging to access log - part 2
https://bugzilla.redhat.com/show_bug.cgi?id=551198
Resolves: bug 551198
Bug Description: LDAPI: incorrect logging to access log - part 2
Reviewed by: andrey.ivanov@polytechnique.fr (Thanks!)
Branch: HEAD
Fix Description: Initialize the from PRNetAddr to nulls. That way, if
PR_Accept doesn't fill in the local fields, we can see that they are
empty and set the printed from field to "local".
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
-rw-r--r-- | ldap/servers/slapd/daemon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ldap/servers/slapd/daemon.c b/ldap/servers/slapd/daemon.c index 3b8986c3..0db7f136 100644 --- a/ldap/servers/slapd/daemon.c +++ b/ldap/servers/slapd/daemon.c @@ -2075,6 +2075,7 @@ handle_new_connection(Connection_Table *ct, int tcps, PRFileDesc *pr_acceptfd, i PRNetAddr from; PRFileDesc *pr_clonefd = NULL; + memset(&from, 0, sizeof(from)); /* reset to nulls so we can see what was set */ if ( (ns = accept_and_configure( tcps, pr_acceptfd, &from, sizeof(from), secure, local, &pr_clonefd)) == SLAPD_INVALID_SOCKET ) { return -1; |