dcerpc: remove use-after-free (found by clang).
Change-Id: I6db7e47fc5e67afcad78763cb739a3f13a47b923 Reviewed-on: https://code.wireshark.org/review/25352 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
c3e6597f20
commit
48b4b3bdad
|
@ -838,10 +838,10 @@ decode_dcerpc_reset_all(void)
|
|||
while (decode_dcerpc_bindings) {
|
||||
binding = (decode_dcerpc_bind_values_t *)decode_dcerpc_bindings->data;
|
||||
|
||||
decode_dcerpc_binding_free(binding);
|
||||
decode_dcerpc_bindings = g_slist_remove(
|
||||
decode_dcerpc_bindings,
|
||||
decode_dcerpc_bindings->data);
|
||||
decode_dcerpc_binding_free(binding);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue