Add NULL check for the auth_cb function.

This commit is contained in:
Andreas Schneider 2008-09-09 15:09:16 +02:00
parent 8b3b57734e
commit 1387904c21

View file

@ -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