From: Volker Lendecke Date: Fri, 17 Nov 2017 10:47:37 +0000 (+0100) Subject: winbind: Remove winbind_messaging_context X-Git-Tag: samba-4.6.12~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e41c947641d3ec52174c9780b79e39871fd11be;p=thirdparty%2Fsamba.git winbind: Remove winbind_messaging_context BUG: https://bugzilla.samba.org/show_bug.cgi?id=13150 Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Nov 18 04:07:24 CET 2017 on sn-devel-144 (cherry picked from commit 050ca45dc7fc5bbab6e1c60b919ac0b1e9661e27) --- diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index e83ab332100..f6010053c31 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -59,25 +59,6 @@ static bool interactive = False; extern bool override_logfile; -struct messaging_context *winbind_messaging_context(void) -{ - static struct messaging_context *msg = NULL; - - if (msg != NULL) { - return msg; - } - - /* - * Note we MUST use the NULL context here, not the autofree context, - * to avoid side effects in forked children exiting. - */ - msg = messaging_init(NULL, server_event_context()); - if (msg == NULL) { - smb_panic("Could not init winbindd's messaging context.\n"); - } - return msg; -} - struct imessaging_context *winbind_imessaging_context(void) { static struct imessaging_context *msg = NULL; diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index 4878b89c372..7fd3f6cf79c 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -26,7 +26,6 @@ #include "ads.h" /* The following definitions come from winbindd/winbindd.c */ -struct messaging_context *winbind_messaging_context(void); struct imessaging_context *winbind_imessaging_context(void); void request_error(struct winbindd_cli_state *state); void request_ok(struct winbindd_cli_state *state);