capture info (wslua): Dereference of null pointer
Change-Id: Iced579d5acaefa9d1c8e3775a53916773bf87659 Reviewed-on: https://code.wireshark.org/review/15929 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
a8f73e92fd
commit
c3190adc12
|
@ -54,6 +54,7 @@ CaptureInfo* push_CaptureInfo(lua_State* L, wtap *wth, const gboolean first_time
|
|||
|
||||
if (!wth) {
|
||||
luaL_error(L, "Internal error: wth is NULL!");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
f = (CaptureInfo) g_malloc0(sizeof(struct _wslua_captureinfo));
|
||||
|
@ -327,6 +328,7 @@ CaptureInfoConst* push_CaptureInfoConst(lua_State* L, wtap_dumper *wdh) {
|
|||
|
||||
if (!wdh) {
|
||||
luaL_error(L, "Internal error: wdh is NULL!");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
f = (CaptureInfoConst) g_malloc0(sizeof(struct _wslua_captureinfo));
|
||||
|
|
Loading…
Reference in New Issue