summaryrefslogtreecommitdiff
path: root/accel-pppd/main.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-07-05 15:04:26 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-07-05 15:04:26 +0400
commit5b095342160fc5c7e7e5a42b202a2e7d535bb757 (patch)
tree74edc2e6546f4d48bf5e34d1827155aff5e8bd29 /accel-pppd/main.c
parentd9e3b3f468475c5e1c81e65b70806f7d20c7a893 (diff)
downloadaccel-ppp-5b095342160fc5c7e7e5a42b202a2e7d535bb757.tar.gz
accel-ppp-5b095342160fc5c7e7e5a42b202a2e7d535bb757.zip
auth_chap: fixed incorrect check for received buffer size
Diffstat (limited to 'accel-pppd/main.c')
-rw-r--r--accel-pppd/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/accel-pppd/main.c b/accel-pppd/main.c
index 365aee00..3b94353f 100644
--- a/accel-pppd/main.c
+++ b/accel-pppd/main.c
@@ -146,9 +146,9 @@ void core_restart(int soft)
char *argv[16];
char *ptr = cmdline, *endptr;
- if (fork()) {
+ if (soft && fork()) {
//close_all_fd();
- _exit(0);
+ return;
}
pthread_sigmask(SIG_SETMASK, &orig_set, NULL);
@@ -224,11 +224,7 @@ static void sigsegv(int num)
}
out:
-#ifdef USE_BACKUP
core_restart(1);
-#else
- core_restart(0);
-#endif
if (conf_dump) {
lim.rlim_cur = RLIM_INFINITY;