diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-02-04 12:54:36 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-02-04 15:52:55 +0100 |
commit | e9c45a3973c85fbe40c017724c7909fefa05b656 (patch) | |
tree | e83dc99037098355671cd44d31742778f9858946 /source3 | |
parent | d8d5a3fb3a7754a71ba78399ab0fdcd8b3854dfa (diff) | |
download | samba-e9c45a3973c85fbe40c017724c7909fefa05b656.tar.gz samba-e9c45a3973c85fbe40c017724c7909fefa05b656.tar.bz2 samba-e9c45a3973c85fbe40c017724c7909fefa05b656.zip |
s3:lib/addrchange: set ctx->sock to -1 after close
The makes the code more consistent with similar destructors.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Feb 4 15:52:55 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/addrchange.c | 2 |
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; } |