Compilers can't see that the child exits. Thus "exit_status" is
used uninitialized in the child.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
/* Then the attack takes effect when the memory's freed. */
talloc_free(pool);
- } else {
- while (wait(&exit_status) != pid);
+
+ /* Never reached. Make compilers happy */
+ return true;
}
+ while (wait(&exit_status) != pid);
+
if (!WIFEXITED(exit_status)) {
printf("Child exited through unexpected abnormal means\n");
return false;