[liValue] fix dereference after NULL check

personal/stbuehler/wip
Stefan Bühler 9 years ago
parent c971749381
commit e0ed289c1a
  1. 1
      include/lighttpd/value.h

@ -159,6 +159,7 @@ INLINE void li_value_list_set(liValue *val, guint ndx, liValue *entry) {
GPtrArray *list;
if (NULL == val || LI_VALUE_LIST != val->type) {
li_value_free(entry);
return;
}
list = val->data.list;
if (ndx <= list->len) {

Loading…
Cancel
Save