X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=chat%2Fchat.c;h=bf107335c8458fa296a75f171c967b6669fb4a17;hb=09f695f09e4ff6905388e15b106cd5669b05965e;hp=0b88c279156b029f371ffe703a33c0d0cb7b19d4;hpb=8d07ad78c8a32b9c89bfcea25d775e8440fd4172;p=ppp.git diff --git a/chat/chat.c b/chat/chat.c index 0b88c27..bf10733 100644 --- a/chat/chat.c +++ b/chat/chat.c @@ -512,6 +512,7 @@ void msgf __V((const char *fmt, ...)) syslog(LOG_INFO, "%s", line); if (to_stderr) fprintf(stderr, "%s\n", line); + va_end(args); } /* @@ -537,6 +538,7 @@ void fatal __V((int code, const char *fmt, ...)) syslog(LOG_ERR, "%s", line); if (to_stderr) fprintf(stderr, "%s\n", line); + va_end(args); terminate(code); } @@ -1167,6 +1169,7 @@ register char *s; if (timeout_next) { timeout_next = 0; + s = clean(s, 0); timeout = atoi(s); if (timeout <= 0)