mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
lib: Fix CID 1445648 Null pointer dereferences
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
9053391f86
commit
32999e1487
@ -44,13 +44,14 @@ int sys_popenv(char * const argl[])
|
||||
int parent_end, child_end;
|
||||
int pipe_fds[2];
|
||||
popen_list *entry = NULL;
|
||||
const char *command = argl[0];
|
||||
const char *command = NULL;
|
||||
int ret;
|
||||
|
||||
if (argl == NULL) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
command = argl[0];
|
||||
|
||||
if (!*command) {
|
||||
errno = EINVAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user