Commit Diff


commit - 90d63d4711e9554b6e7e6e26d2fbeb50964452cf
commit + ae46fc5c450cfed441d1a5eca6df1881785fb236
blob - 55d6e2d21360d576e728f27c404db667eb55406b
blob + 74cd66b0d5b3dac3614ec5c64baabedfc40d2c9e
--- gotwebd/parse.y
+++ gotwebd/parse.y
@@ -250,10 +250,13 @@ server		: SERVER STRING {
 			log_debug("adding server %s", $2);
 			free($2);
 		} '{' optnl serveropts2 '}' {
-			if (get_addrs(new_srv->fcgi_socket_bind,
-			    &new_srv->al, new_srv->fcgi_socket_port) == -1) {
-				yyerror("could not get tcp iface addrs");
-				YYERROR;
+			if (new_srv->fcgi_socket) {
+				if (get_addrs(new_srv->fcgi_socket_bind,
+				    &new_srv->al, new_srv->fcgi_socket_port)
+				    == -1) {
+					yyerror("could not get tcp iface addr");
+					YYERROR;
+				}
 			}
 		}
 		;