summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-08 01:43:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:04 -0500
commit6b35642037e17766a25b158c0c0a5f01405ec9e8 (patch)
treed3a202d665fc902058b6e350eadbcf0e2ec08583 /source3
parent26c95f354523164ea81d703a5e00a7d4abf0126a (diff)
downloadsamba-6b35642037e17766a25b158c0c0a5f01405ec9e8.tar.gz
samba-6b35642037e17766a25b158c0c0a5f01405ec9e8.tar.bz2
samba-6b35642037e17766a25b158c0c0a5f01405ec9e8.zip
r14007: Coverity bug CID #197. Don't compare against 0, we
mean the ttl instead. Jeremy. (This used to be commit ccb2a52e29de7e2847ccd93aa99236f63202a4af)
Diffstat (limited to 'source3')
-rw-r--r--source3/nmbd/nmbd_winsproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_winsproxy.c b/source3/nmbd/nmbd_winsproxy.c
index 4f08b2fc5b..7a28eba77d 100644
--- a/source3/nmbd/nmbd_winsproxy.c
+++ b/source3/nmbd/nmbd_winsproxy.c
@@ -76,7 +76,7 @@ returned for name %s.\n", nmb_namestr(nmbname) ));
/* Add the queried name to the original subnet as a WINS_PROXY_NAME. */
- if(rrec && (rrec == PERMANENT_TTL)) {
+ if(rrec->ttl == PERMANENT_TTL) {
ttl = lp_max_ttl();
}