From 2380dc0b234c4a4486c9c2efd08c586b131147b5 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sat, 20 Dec 2008 10:51:25 -0500 Subject: [PATCH] Fixed freeing "tcp_wait" in tcp_accept_thread() before parsing it. --- src/pwmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pwmd.c b/src/pwmd.c index 119bca31..56638f9c 100644 --- a/src/pwmd.c +++ b/src/pwmd.c @@ -1534,8 +1534,8 @@ static void *tcp_accept_thread(void *arg) } t = get_key_file_string("global", "tcp_wait"); - g_free(t); n = strtol(t, NULL, 10); + g_free(t); if (n < 0) n = 0; -- 2.11.4.GIT