mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r4802: Don't try to update a column with the name "NULL"
(This used to be commit ed38e60264
)
This commit is contained in:
parent
69e24e59a4
commit
5d47f8e5e5
@ -141,8 +141,14 @@ static const char * config_value_write(const char *location, const char *name, c
|
||||
swrite = strrchr(v, ':');
|
||||
|
||||
/* Default to the same field as read field */
|
||||
if (!swrite)
|
||||
if (!swrite) {
|
||||
|
||||
/* Updating NULL does not make much sense */
|
||||
if (!strcmp(v, "NULL"))
|
||||
return NULL;
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
swrite++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user