mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-12 20:18:34 +01:00
Ticket 8609: SPA of many parameters causes segmentation fault
This commit is contained in:
parent
802e10d750
commit
223e7616b8
1 changed files with 2 additions and 2 deletions
|
|
@ -259,7 +259,7 @@ void add_list_enabled_notify(char *param, char *notification, char *value)
|
|||
dm_enabled_notify = calloc(1, sizeof(struct param_fault)); // Should be calloc and not dmcalloc
|
||||
list_add_tail(&dm_enabled_notify->list, &list_enabled_notify);
|
||||
dm_enabled_notify->name = strdup(param); // Should be strdup and not dmstrdup
|
||||
dm_enabled_notify->value = strdup(value); // Should be strdup and not dmstrdup
|
||||
dm_enabled_notify->value = value ? strdup(value) : strdup("");
|
||||
dm_enabled_notify->notification = strdup(notification); // Should be strdup and not dmstrdup
|
||||
}
|
||||
|
||||
|
|
@ -270,7 +270,7 @@ void add_list_enabled_lwnotify(char *param, char *notification, char *value)
|
|||
dm_enabled_notify = calloc(1, sizeof(struct param_fault)); // Should be calloc and not dmcalloc
|
||||
list_add_tail(&dm_enabled_notify->list, &list_enabled_lw_notify);
|
||||
dm_enabled_notify->name = strdup(param); // Should be strdup and not dmstrdup
|
||||
dm_enabled_notify->value = strdup(value); // Should be strdup and not dmstrdup
|
||||
dm_enabled_notify->value = value ? strdup(value) : strdup(""); // Should be strdup and not dmstrdup
|
||||
dm_enabled_notify->notification = strdup(notification); // Should be strdup and not dmstrdup
|
||||
}
|
||||
void del_list_enabled_notify(struct dm_enabled_notify *dm_enabled_notify)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue