]> granicus.if.org Git - curl/commitdiff
Fix trying to return outside of a subroutine
authorYang Tse <yangsita@gmail.com>
Wed, 21 Nov 2007 17:50:30 +0000 (17:50 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 21 Nov 2007 17:50:30 +0000 (17:50 +0000)
tests/httpsserver.pl

index 648b148df92ccfd5501edb594c58611721a63089..3cc6c1ea900a2ea0adb3c67de3c51d8f2ee6060f 100644 (file)
@@ -60,7 +60,7 @@ my $conffile="$path/stunnel.conf";    # stunnel configuration data
 my $certfile="$srcdir/stunnel.pem";    # stunnel server certificate
 my $pidfile="$path/.$proto.pid";       # stunnel process pid file
 
-open(CONF, ">$conffile") || return 1;
+open(CONF, ">$conffile") || exit 1;
 print CONF "
        CApath=$path
        cert = $certfile