1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source3/rpc_server/spoolss
David Disseldorp a65e22c6bd spoolss: cache_key handle allocation failures early
On cache_key allocation failure, set_printer_hnd_name() currently
stumbles through the rest of the function, and includes extra logic to
handle a NULL key later on.
Handling the allocation failure early makes sense, and also allows for
the NULL key checks to be removed.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Apr 15 18:55:50 CEST 2015 on sn-devel-104
2015-04-15 18:55:50 +02:00
..
srv_spoolss_nt.c spoolss: cache_key handle allocation failures early 2015-04-15 18:55:50 +02:00
srv_spoolss_nt.h s3-proto: move remaining spoolss protos to own header file. 2011-05-02 15:03:43 +02:00
srv_spoolss_util.c s3-spoolss: Use tmp_ctx in winreg_enum_printer_key_internal. 2011-07-27 08:50:01 +02:00
srv_spoolss_util.h s3-auth Use the common auth_session_info 2011-07-20 09:17:13 +10:00