summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/addrchange.c2
1 files changed, 1 insertions, 1 deletions
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;
}