fix http://secunia.com/advisories/51948/ by applying a patch taken from
svn.ircd-hybrid.org