Commit 93523659 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Merge branch its9762 with refs/heads/master into refs/merge-requests/461/train

parents a8467b8b a5e7fdce
Pipeline #3934 passed with stage
in 44 minutes and 38 seconds
......@@ -90,7 +90,7 @@ static int dgroup_cf( ConfigArgs *c )
case SLAP_CONFIG_ADD:
case LDAP_MOD_ADD:
{
adpair ap = { NULL, NULL, NULL }, *a2;
adpair ap = { NULL, NULL, NULL }, **app, *a2;
const char *text;
if ( slap_str2ad( c->argv[1], &ap.ap_mem, &text ) ) {
snprintf( c->cr_msg, sizeof( c->cr_msg ), "%s attribute description unknown: \"%s\"",
......@@ -110,10 +110,14 @@ static int dgroup_cf( ConfigArgs *c )
* anything this instance of the overlay needs.
*/
a2 = ch_malloc( sizeof(adpair) );
a2->ap_next = on->on_bi.bi_private;
for ( app = &on->on_bi.bi_private; *app; app = &(*app)->ap_next )
/* Get to the end */ ;
a2->ap_mem = ap.ap_mem;
a2->ap_uri = ap.ap_uri;
on->on_bi.bi_private = a2;
a2->ap_next = *app;
*app = a2;
rc = 0;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment