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
This commit is contained in:
tosiara
2017-02-26 17:01:01 +02:00
parent b33c672e84
commit 81ea81aa6a

View File

@@ -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);
}
}
}