0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

Merge pull request #75 from attilamolnar/master+nullcharfix

Fix sending null char after ERROR when the server is full
This commit is contained in:
William Pitcock 2014-11-04 23:26:40 -06:00
commit 070d8da8eb

View file

@ -531,7 +531,7 @@ accept_precallback(rb_fde_t *F, struct sockaddr *addr, rb_socklen_t addrlen, voi
last_oper_notice = rb_current_time();
}
rb_write(F, "ERROR :All connections in use\r\n", 32);
rb_write(F, "ERROR :All connections in use\r\n", 31);
rb_close(F);
return 0;
}