2
0
Fork 0

[core] Fix segfault in li_vrequest_reset() when default value is NULL

personal/stbuehler/wip
Thomas Porzelt 2010-07-11 23:53:59 +02:00
parent 43def72d5b
commit a4b0f4a9c0
1 changed files with 2 additions and 1 deletions

View File

@ -298,7 +298,8 @@ void li_vrequest_reset(liVRequest *vr, gboolean keepalive) {
liOptionPtrValue *oval = g_array_index(srv->optionptr_def_values, liOptionPtrValue*, i);
if (vr->optionptrs[i] != oval) {
li_release_optionptr(srv, vr->optionptrs[i]);
g_atomic_int_inc(&oval->refcount);
if (oval)
g_atomic_int_inc(&oval->refcount);
vr->optionptrs[i] = oval;
}
}