Browse Source

Bug 644013 - uniqueness plugin segfault bug

https://bugzilla.redhat.com/show_bug.cgi?id=644013
Resolves: bug 644013
Bug Description: uniqueness plugin segfault bug
Reviewed by: self - one liner
Branch: master
Fix Description: Access the array pointer correctly
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
Rich Megginson 15 years ago
parent
commit
f4c6760ea5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/plugins/uiduniq/uid.c

+ 1 - 1
ldap/servers/plugins/uiduniq/uid.c

@@ -637,7 +637,7 @@ addMod(LDAPMod ***modary, int *capacity, int *nmods, LDAPMod *toadd)
       *modary = (LDAPMod **)slapi_ch_malloc(*capacity * sizeof(LDAPMod *));
     }
   }
-  *modary[*nmods] = toadd;
+  (*modary)[*nmods] = toadd;
   (*nmods)++;
 }