[Pkg-wmaker-commits] [wmppp.app] 85/120: wmppp.app: Fix segfault if stop_action or start_action strings are NULL.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 27 12:04:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmppp.app.

commit da71fc32eca127971cf81df2c9915f5a719e588f
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Tue May 19 22:31:07 2015 -0500

    wmppp.app: Fix segfault if stop_action or start_action strings are NULL.
---
 wmppp.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/wmppp.c b/wmppp.c
index 7758eee..a1f1196 100644
--- a/wmppp.c
+++ b/wmppp.c
@@ -637,7 +637,8 @@ void wmppp_routine(int argc, char **argv) {
 						if (!starttime) {
 							copyXPMArea(28, 95, 25, 11, 5, 48);
 							DrawTime(0, 1);
-							start_child = execCommand(start_action);
+							if (start_action)
+								start_child = execCommand(start_action);
 							SetWaitLED(LED_PPP_POWER);
 							waittime = ORANGE_LED_TIMEOUT + currenttime;
 						}
@@ -645,7 +646,8 @@ void wmppp_routine(int argc, char **argv) {
 						break;
 					case 1:
 						if (stop_child == 0) {
-							stop_child = execCommand(stop_action);
+							if (stop_action)
+								stop_child = execCommand(stop_action);
 						}
 						break;
 					}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmppp.app.git



More information about the Pkg-wmaker-commits mailing list