aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2016-06-15 20:35:47 +0200
committerPeter Wu <peter@lekensteyn.nl>2016-06-15 21:39:00 +0000
commitc3190adc12e3e7ceb14c62808f7d1d07756137c9 (patch)
tree242c21fd47ffd32b23ff710415471b21ab92d10b /epan/wslua
parenta8f73e92fde0b7055004e4d3d518ffcfd447815c (diff)
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>
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/wslua_capture_info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/wslua/wslua_capture_info.c b/epan/wslua/wslua_capture_info.c
index e63a1516ee..e0293dad0b 100644
--- a/epan/wslua/wslua_capture_info.c
+++ b/epan/wslua/wslua_capture_info.c
@@ -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));