diff options
author | Jeremy Allison <jra@samba.org> | 2002-08-27 20:23:12 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-08-27 20:23:12 +0000 |
commit | 4208f027cff77142df4f984a4a8985afbe30a4f1 (patch) | |
tree | f71fdb133570625400d811ca8994e215149364b5 /source/printing | |
parent | 6f901e479dd7a0b9d1395aad5b8ef028c0514fec (diff) | |
download | samba-4208f027cff77142df4f984a4a8985afbe30a4f1.tar.gz samba-4208f027cff77142df4f984a4a8985afbe30a4f1.tar.xz samba-4208f027cff77142df4f984a4a8985afbe30a4f1.zip |
Handle locking correctly.
Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/printing.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c index 61c32821969..c0cd44d1ecc 100644 --- a/source/printing/printing.c +++ b/source/printing/printing.c @@ -178,9 +178,13 @@ static struct tdb_print_db *get_print_db_byname(const char *printername) print_db_head->printer_name )); return NULL; } - ZERO_STRUCTP(p); - DLIST_PROMOTE(print_db_head, p); } + ZERO_STRUCTP(p); + break; + } + if (p) { + DLIST_PROMOTE(print_db_head, p); + p = print_db_head; } } |