diff options
author | Volker Lendecke <Volker.Lendecke@SerNet.DE> | 2011-03-18 12:07:43 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-03-18 21:34:30 +0100 |
commit | 4b347a1b17549a3807d9448866fa37dcb293c4e7 (patch) | |
tree | fc0db710b2a3148634cf01fa43be24a514c1a69b /source3/rpc_server | |
parent | 8ae1f32229cf960f212235e7d792513a395643cb (diff) | |
download | samba-4b347a1b17549a3807d9448866fa37dcb293c4e7.tar.gz |
s3: Add "print notify backchannel" parameter to prevent us doing the reverse print notify connection.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Mar 18 21:34:30 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 3026a889e66..030324c0853 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -2736,6 +2736,12 @@ WERROR _spoolss_RemoteFindFirstPrinterChangeNotifyEx(struct pipes_struct *p, DEBUG(10,("_spoolss_RemoteFindFirstPrinterChangeNotifyEx: " "client_address is %s\n", p->client_id->addr)); + if (!lp_print_notify_backchannel(snum)) { + DEBUG(10, ("_spoolss_RemoteFindFirstPrinterChangeNotifyEx: " + "backchannel disabled\n")); + return WERR_SERVER_UNAVAILABLE; + } + if (!interpret_string_addr(&client_ss, p->client_id->addr, AI_NUMERICHOST)) { return WERR_SERVER_UNAVAILABLE; |