From 81ea81aa6abcac4d52cede17441ee3c2bb55e497 Mon Sep 17 00:00:00 2001 From: tosiara Date: Sun, 26 Feb 2017 17:01:01 +0200 Subject: [PATCH] Bugfix: wrong variable logged when extpipe is already closed This caused memory access violation and process crash Fixes https://github.com/Motion-Project/motion/issues/329 --- event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event.c b/event.c index 8581059a..1055f2af 100644 --- a/event.c +++ b/event.c @@ -569,7 +569,7 @@ static void event_extpipe_put(struct context *cnt, ferror(cnt->extpipe)); } else { MOTION_LOG(ERR, TYPE_EVENTS, NO_ERRNO, "%s: pipe %s not created or closed already ", - cnt->extpipe); + cnt->conf.extpipe); } } }