diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-02-12 06:38:18 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-02-12 06:38:18 +0000 |
commit | ce7db9bdcc8ed1333812b95a672e946aeb986bdc (patch) | |
tree | 27317e62bd15ff2d7a3ea5ec320a6f4766d83c95 /source3/printing | |
parent | b792454963e7abe478196e17035ae2e7bc1341bc (diff) | |
download | samba-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)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/notify.c | 8 |
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) { |