Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Barchiesi
OpenLDAP
Commits
fe7b161b
Commit
fe7b161b
authored
Jan 20, 2021
by
Quanah Gibson-Mount
Browse files
ITS
#9440
- Don't set control to NULL before it's used for output.
parent
e768dcd0
Changes
1
Show whitespace changes
Inline
Side-by-side
clients/tools/common.c
View file @
fe7b161b
...
...
@@ -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
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment