Commit 753ccc44 authored by rswindell's avatar rswindell
Browse files

Don't force "bbs" into the specific sockopts section because other applications

(e.g. jsexec) use this function to open sockets.
parent 37556aeb
......@@ -177,14 +177,12 @@ int eprintf(int level, char *fmt, ...)
SOCKET open_socket(int type, const char* protocol)
SOCKET sock;
char section[128];
char error[256];
sock=socket(AF_INET, type, IPPROTO_IP);
if(sock!=INVALID_SOCKET && startup!=NULL && startup->socket_open!=NULL)
if(sock!=INVALID_SOCKET && set_socket_options(&scfg, sock, section, error, sizeof(error)))
if(sock!=INVALID_SOCKET && set_socket_options(&scfg, sock, protocol, error, sizeof(error)))
lprintf(LOG_ERR,"%04d !ERROR %s",sock,error);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment