mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
talloc_strdup "dir" in wb_context_init
This commit is contained in:
parent
625851a50f
commit
e9d1197b4e
@ -200,10 +200,14 @@ struct wb_context *wb_context_init(TALLOC_CTX *mem_ctx, const char* dir)
|
||||
result->is_priv = false;
|
||||
|
||||
if (dir != NULL) {
|
||||
result->dir = dir;
|
||||
result->dir = talloc_strdup(result, dir);
|
||||
} else {
|
||||
result->dir = winbindd_socket_dir();
|
||||
}
|
||||
if (result->dir == NULL) {
|
||||
TALLOC_FREE(result);
|
||||
return NULL;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user