use abort() instead of exit() in smb_panic()
authorAndrew Tridgell <tridge@samba.org>
Wed, 28 Oct 1998 06:05:34 +0000 (06:05 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 28 Oct 1998 06:05:34 +0000 (06:05 +0000)
the reason we don't return() here is that smb_panic() is used not just
for segv but also for detected errors (such as buffer overflows)
(This used to be commit 7a50ca81a5842f7139e67c0ff9de79518599f445)

source3/lib/util.c

index ced6786194dba71573d8bf090ef236cb02c00d6b..a0500295485349e56ec92140680d6e63b4afed09 100644 (file)
@@ -4179,7 +4179,7 @@ void smb_panic(char *why)
                system(cmd);
        }
        DEBUG(0,("PANIC: %s\n", why));
-       exit(1);
+       abort();
 }