From 1387904c217925d04d22ee158c53aef21caf0bd5 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 9 Sep 2008 15:09:16 +0200 Subject: [PATCH] Add NULL check for the auth_cb function. --- modules/csync_smb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/csync_smb.c b/modules/csync_smb.c index a12f40a68..61f7dcc2c 100644 --- a/modules/csync_smb.c +++ b/modules/csync_smb.c @@ -489,7 +489,9 @@ csync_vio_method_t *vio_module_init(const char *method_name, const char *args, return NULL; } - auth_cb = cb; + if (cb != NULL) { + auth_cb = cb; + } /* set debug level and authentication function callback */ #ifdef DEPRECATED_SMBC_INTERFACE