diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-03 14:47:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-03 14:47:38 +0000 |
commit | 786918dfa4fc8dde44f26da9bccc51bcd769890b (patch) | |
tree | a350074cfe318c24473b8e0be8c46cea8d782467 /libexec/spamd/sdl.c | |
parent | 0a7b803bc121b15cc8fbc8e1cd862934b4b2b605 (diff) |
always set ptr to NULL after free; from cloder
Diffstat (limited to 'libexec/spamd/sdl.c')
-rw-r--r-- | libexec/spamd/sdl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/spamd/sdl.c b/libexec/spamd/sdl.c index 293a9c76465..757342ef2cc 100644 --- a/libexec/spamd/sdl.c +++ b/libexec/spamd/sdl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdl.c,v 1.3 2003/03/02 20:40:15 deraadt Exp $ */ +/* $OpenBSD: sdl.c,v 1.4 2003/03/03 14:47:37 deraadt Exp $ */ /* * Copyright (c) 2003 Bob Beck. All rights reserved. * @@ -69,8 +69,11 @@ sdl_add(char *sdname, char *sdstring, char ** addrs, int addrc) if (debug > 0) printf("replacing list %s\n", blacklists[index].tag); free(blacklists[index].tag); + blacklists[index].tag = NULL; free(blacklists[index].string); + blacklists[index].string = NULL; free(blacklists[index].addrs); + blacklists[index].addrs = NULL; } else { if (debug > 0) printf("adding list %s\n", sdname); |