mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Add NULL check for the auth_cb function.
This commit is contained in:
parent
8b3b57734e
commit
1387904c21
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue