summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-08-27 20:23:12 +0000
committerJeremy Allison <jra@samba.org>2002-08-27 20:23:12 +0000
commite519e528a0858a71ad7d3b821accce4a27d5b75f (patch)
tree38b0566d9f44d5fac47abc66d94414d03ff08aff /source3
parent16413f2d9de850dcfea135fd5ceb4cd30a115ffa (diff)
downloadsamba-e519e528a0858a71ad7d3b821accce4a27d5b75f.tar.gz
samba-e519e528a0858a71ad7d3b821accce4a27d5b75f.tar.bz2
samba-e519e528a0858a71ad7d3b821accce4a27d5b75f.zip
Handle locking correctly.
Jeremy. (This used to be commit 4208f027cff77142df4f984a4a8985afbe30a4f1)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/printing.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 61c3282196..c0cd44d1ec 100644
--- a/source3/printing/printing.c
+++ b/source3/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;
}
}