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

ITS#9440 - Don't set control to NULL before it's used for output.

parent e768dcd0
...@@ -730,8 +730,6 @@ tool_args( int argc, char **argv ) ...@@ -730,8 +730,6 @@ tool_args( int argc, char **argv )
} }
unknown_ctrls = tmpctrls; unknown_ctrls = tmpctrls;
ctrl.ldctl_oid = control; ctrl.ldctl_oid = control;
/* don't free it */
control = NULL;
ctrl.ldctl_value.bv_val = NULL; ctrl.ldctl_value.bv_val = NULL;
ctrl.ldctl_value.bv_len = 0; ctrl.ldctl_value.bv_len = 0;
ctrl.ldctl_iscritical = crit; ctrl.ldctl_iscritical = crit;
...@@ -758,6 +756,8 @@ tool_args( int argc, char **argv ) ...@@ -758,6 +756,8 @@ tool_args( int argc, char **argv )
ctrl.ldctl_value = bv; ctrl.ldctl_value = bv;
} }
/* don't free it */
control = NULL;
unknown_ctrls[ unknown_ctrls_num ] = ctrl; unknown_ctrls[ unknown_ctrls_num ] = ctrl;
unknown_ctrls_num++; unknown_ctrls_num++;
......
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