From: pk910 Date: Tue, 25 Oct 2011 14:59:06 +0000 (+0200) Subject: don't send PASS command if theres no password set X-Git-Tag: v5.3~247 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=1a90484b65b11af682d57d2efb6783b3cdb5abb7 don't send PASS command if theres no password set --- diff --git a/src/ClientSocket.c b/src/ClientSocket.c index f9faf44..87871b8 100644 --- a/src/ClientSocket.c +++ b/src/ClientSocket.c @@ -158,7 +158,7 @@ int connect_socket(struct ClientSocket *client) { char sendBuf[512]; int len; - if(client->pass) { + if(client->pass && strcmp(client->pass, "")) { len = sprintf(sendBuf, "PASS :%s\n", client->pass); write_socket(client, sendBuf, len); }