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
Pipeline #1408 passed with stage
in 31 minutes and 13 seconds
......@@ -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++;
......
Markdown is supported
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