diff options
author | Günther Deschner <gd@samba.org> | 2009-11-02 13:01:58 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-11-26 11:40:02 +0100 |
commit | 522f9349aa6adc6f712d42086791df018d7c8b2f (patch) | |
tree | 894eea9bdd87ef17d1f61dfd4f4e1125ea1e0b41 /source3/torture | |
parent | 1db58dedf39af834c6273b13d98398816ab0b622 (diff) | |
download | samba-522f9349aa6adc6f712d42086791df018d7c8b2f.tar.gz |
s3-gencache: restore gencache_get behavior with NULL args (with torture test).
Without this, we panic in wins_srv_is_dead() and fail to start nmbd with
wins support.
Volker, please check.
Guenther
(cherry picked from commit f35a1b95aa6f50cb1bc919f4ab502ef2c38f6bf5)
(cherry picked from commit f39c2577fc649713cfd1e0fb9c164ee4423c96f7)
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index ca499a9fcc8..bda82f2b749 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -6431,6 +6431,11 @@ static bool run_local_gencache(int dummy) return False; } + if (!gencache_get("foo", NULL, NULL)) { + d_printf("%s: gencache_get() failed\n", __location__); + return False; + } + if (!gencache_get("foo", &val, &tm)) { d_printf("%s: gencache_get() failed\n", __location__); return False; |