From e9c45a3973c85fbe40c017724c7909fefa05b656 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 4 Feb 2011 12:54:36 +0100 Subject: s3:lib/addrchange: set ctx->sock to -1 after close The makes the code more consistent with similar destructors. metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Fri Feb 4 15:52:55 CET 2011 on sn-devel-104 --- source3/lib/addrchange.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') diff --git a/source3/lib/addrchange.c b/source3/lib/addrchange.c index b74a8e0b86..8cd3c19ab5 100644 --- a/source3/lib/addrchange.c +++ b/source3/lib/addrchange.c @@ -76,7 +76,7 @@ static int addrchange_context_destructor(struct addrchange_context *c) { if (c->sock != -1) { close(c->sock); - c->sock = 0; + c->sock = -1; } return 0; } -- cgit