unixsock plugin: Do not unregister a write-callback in us_shutdown().
authorSebastian Harl <sh@tokkee.org>
Mon, 31 Mar 2008 09:31:38 +0000 (11:31 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 1 Apr 2008 13:02:44 +0000 (15:02 +0200)
The unixsock plugin no longer registers a write-callback. Basically,
unregistering a non-existent callback does not do any harm, However, if no
write-callback has been registered at all, the appropriate linked list has
never been created and the process will segfault when trying to access it.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/unixsock.c

index f8dcc5b..f8c9fbf 100644 (file)
@@ -752,7 +752,6 @@ static int us_shutdown (void)
        }
 
        plugin_unregister_init ("unixsock");
-       plugin_unregister_write ("unixsock");
        plugin_unregister_shutdown ("unixsock");
 
        return (0);