X-Git-Url: http://git.samba.org/?p=samba.git;a=blobdiff_plain;f=lib%2Ftalloc%2Ftestsuite.c;fp=lib%2Ftalloc%2Ftestsuite.c;h=34410b81c3f3a12b262e9dd02a8174a0a89d5715;hp=9f830390d364cf0ba6bbf69c89f54a8140902b3d;hb=b5cf80a7b58095fd711968ef03f84740d0119553;hpb=2f7bee43d8bcb8cc5205b159862e57954e4fc26c diff --git a/lib/talloc/testsuite.c b/lib/talloc/testsuite.c index 9f830390d36..34410b81c3f 100644 --- a/lib/talloc/testsuite.c +++ b/lib/talloc/testsuite.c @@ -1895,10 +1895,13 @@ static bool test_magic_protection(void) /* 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;