commit - 2ad48e9a6b577bb911e97eb269ed1654dbb048f9
commit + 73ffdfc038e3a5f5bf130d7c5754428ff92f69e4
blob - b1bbd7d1edd47a6c9aec7e31bffa17bcafce1d54
blob + 7c62ab08d5caf265c2e5a4163965438fd218b859
--- gotwebd/parse.y
+++ gotwebd/parse.y
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;
+ }
}
}
;