summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 80cbf58)
raw | patch | inline | side by side (parent: 80cbf58)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 19 Aug 2014 11:54:53 +0000 (13:54 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 29 Aug 2014 13:09:55 +0000 (15:09 +0200) |
... as mentioned in ldap_search_ext_s(3). This fixes a segfault when
building with -O2.
building with -O2.
src/openldap.c | patch | blob | history |
diff --git a/src/openldap.c b/src/openldap.c
index 7ce789fb54004229053a4d3ff0ca43fdeb07ab1d..e6e1c6468cc9777f2c2fb12ef2774920912bb9dd 100644 (file)
--- a/src/openldap.c
+++ b/src/openldap.c
int rc;
int status;
- char *attrs[8] = { "monitorCounter",
+ char *attrs[9] = { "monitorCounter",
"monitorOpCompleted",
"monitorOpInitiated",
"monitoredInfo",
"olmBDBEntryCache",
"olmBDBDNCache",
"olmBDBIDLCache",
- "namingContexts" };
+ "namingContexts",
+ NULL };
if ((ud == NULL) || (ud->data == NULL))
{