From 0fd1bddc838c51119d8ac1210cbd077975b6538b Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 3 Jul 2013 21:41:52 +0000 Subject: - Fixed core with empty auth::spoof entries git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2351 82007160-df01-0410-b94d-b575c5fd34c7 --- NEWS | 1 + src/s_user.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 6381b58..8ab0c08 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ o) Added 'xline' and 'resv' logging types. See doc/reference.conf for more information o) Fixed bug where remote /STATS requests were not rate limited +o) Fixed core with empty auth::spoof entries -- ircd-hybrid-8.1.3 Release Notes diff --git a/src/s_user.c b/src/s_user.c index b0d347b..f7d6bd4 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -645,7 +645,7 @@ valid_hostname(const char *hostname) assert(p != NULL); - if (*p == '.' || *p == ':') + if (EmptyString(p) || *p == '.' || *p == ':') return 0; for (; *p; ++p) -- cgit