mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#9440 - Don't set control to NULL before it's used for output.
This commit is contained in:
parent
e768dcd062
commit
fe7b161bb2
@ -730,8 +730,6 @@ tool_args( int argc, char **argv )
|
||||
}
|
||||
unknown_ctrls = tmpctrls;
|
||||
ctrl.ldctl_oid = control;
|
||||
/* don't free it */
|
||||
control = NULL;
|
||||
ctrl.ldctl_value.bv_val = NULL;
|
||||
ctrl.ldctl_value.bv_len = 0;
|
||||
ctrl.ldctl_iscritical = crit;
|
||||
@ -758,6 +756,8 @@ tool_args( int argc, char **argv )
|
||||
ctrl.ldctl_value = bv;
|
||||
}
|
||||
|
||||
/* don't free it */
|
||||
control = NULL;
|
||||
unknown_ctrls[ unknown_ctrls_num ] = ctrl;
|
||||
unknown_ctrls_num++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user