s3-spoolss: avoid referencing p->opnum in _spoolss_AddPrinterDriverEx
authorGünther Deschner <gd@samba.org>
Thu, 8 Sep 2016 19:06:41 +0000 (21:06 +0200)
committerJeremy Allison <jra@samba.org>
Sun, 11 Sep 2016 17:57:26 +0000 (19:57 +0200)
commitd6d7871bde70459147fa79b27e88ffa9fb480cb6
tree6b26ae795c84c5263ee674ecd9c42cce5ccb4c92
parentf3e94b88d7dbbc65a622a310602ec0a43f0e2a68
s3-spoolss: avoid referencing p->opnum in _spoolss_AddPrinterDriverEx

When called by another protocol, this call would fail when called with an
unexpected opnum... This change is in preparation for supporting MS-PAR.

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/spoolss/srv_spoolss_nt.c