summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-12 06:38:18 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-12 06:38:18 +0000
commitce7db9bdcc8ed1333812b95a672e946aeb986bdc (patch)
tree27317e62bd15ff2d7a3ea5ec320a6f4766d83c95
parentb792454963e7abe478196e17035ae2e7bc1341bc (diff)
downloadsamba-ce7db9bdcc8ed1333812b95a672e946aeb986bdc.tar.gz
samba-ce7db9bdcc8ed1333812b95a672e946aeb986bdc.tar.bz2
samba-ce7db9bdcc8ed1333812b95a672e946aeb986bdc.zip
Prevent NULL-pointer induced segfaults.
Is tdb_pack in appliance_head different for some reason? Andrew Bartlett (This used to be commit 9deb14a2e63fa71a05915b5ab865b8d0c11df098)
-rw-r--r--source3/printing/notify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index feae9c04c1..2df28a9345 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -79,18 +79,18 @@ again:
/* Pack header */
- len += tdb_pack(buf + len, buflen - len, NULL, "f", msg->printer);
+ len += tdb_pack(buf + len, buflen - len, "f", msg->printer);
- len += tdb_pack(buf + len, buflen - len, NULL, "ddddd",
+ len += tdb_pack(buf + len, buflen - len, "ddddd",
msg->type, msg->field, msg->id, msg->len, msg->flags);
/* Pack data */
if (msg->len == 0)
- len += tdb_pack(buf + len, buflen - len, NULL, "dd",
+ len += tdb_pack(buf + len, buflen - len, "dd",
msg->notify.value[0], msg->notify.value[1]);
else
- len += tdb_pack(buf + len, buflen - len, NULL, "B",
+ len += tdb_pack(buf + len, buflen - len, "B",
msg->len, msg->notify.data);
if (buflen != len) {