ports/irc/unreal/files/patch-src_s__bsd.c
Mathieu Arnold 8270403ec3 Fix startup.
Don't install as root:wheel/0700.

PR:		204021
Submitted by:	loox e-shell net
Sponsored by:	Absolight
2015-10-27 13:44:31 +00:00

11 lines
284 B
C

--- src/s_bsd.c.orig 2015-08-16 06:44:25 UTC
+++ src/s_bsd.c
@@ -455,7 +455,7 @@ int inetport(aClient *cptr, char *name,
*/
if (cptr->fd == -1)
{
- cptr->fd = socket(AFINET, SOCK_STREAM, 0);
+ cptr->fd = socket(AFINET, SOCK_STREAM, IPPROTO_TCP);
}
if (cptr->fd < 0)
{