rtpproxy: use return in init script
[feed/telephony.git] / net / rtpproxy / files / rtpproxy.init
index f71ec6af52593e5b5fb479a2eb7fd34c55d7a244..4c94ba255be0cdcf0a54b78ccf8cd9b8d39b8849 100644 (file)
@@ -48,13 +48,13 @@ check_ipaddr() {
 
        [ -z "$value" ] && {
                $LOG_ERR empty $type entry
-               exit 1
+               return 1
        }
 
        # Bail if more than 1 slash.
        [ $(echo "$value" | awk -F "/" '{print NF-1}') -gt 1 ] && {
                $LOG_ERR init script does not understand $type entry \""$value"\"
-               exit 1
+               return 1
        }
 
        IFS="/" read one two << EOF