diff options
author | Simo Sorce <idra@samba.org> | 2010-07-26 18:28:15 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-07-27 10:27:16 -0400 |
commit | 90c17828824401c7be065a7bbf706dcafef0fc31 (patch) | |
tree | e45ffe38f6906a5001bbff5f32207d2637ee49a8 | |
parent | 6cd2f2ff31768a40ca60112964b35bf040b2e6d8 (diff) | |
download | samba-90c17828824401c7be065a7bbf706dcafef0fc31.tar.gz samba-90c17828824401c7be065a7bbf706dcafef0fc31.tar.bz2 samba-90c17828824401c7be065a7bbf706dcafef0fc31.zip |
s3-spoolss: Avoid segfault, check drivername is actually not NULL.
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index d781e2c950..5840283eab 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -1342,6 +1342,10 @@ void do_drv_upgrade_printer(struct messaging_context *msg, continue; } + if (!pinfo2->drivername) { + continue; + } + if (strcmp(drivername, pinfo2->drivername) != 0) { continue; } |