1
0
forked from bip/bip

[BUG] fatal() on nick change on gamesurge network

Some time gamesurge sends a "foo NICK :foo" which we didn't handle
correctly.
This commit is contained in:
Arnaud Cornet 2009-11-15 20:14:28 +00:00
parent 31ae5ac0bf
commit 03ee43ca89
2 changed files with 5 additions and 3 deletions

View File

@ -60,12 +60,12 @@ AS_IF([test "x$enable_debug" = "xyes"], [
])
AM_CONDITIONAL(OIDENTD, test x$enable_identd = xyes)
AS_IF([test "x$with_openssl" != "xno"], [
AC_CHECK_LIB(ssl, SSL_read, [], [
AC_MSG_ERROR([library 'ssl' is required for OpenSSL support])
], -lssl)
AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [
AC_MSG_ERROR([library 'crypto' is required for OpenSSL support])
], -lcrypto)
AC_CHECK_LIB(ssl, SSL_read, [with_openssl=yes], [
AC_MSG_ERROR([library 'ssl' is required for OpenSSL support])
])
])
AC_CONFIG_FILES([Makefile])

View File

@ -723,6 +723,8 @@ list_t *hash_keys(hash_t *hash)
void hash_rename_key(hash_t *h, const char *oldk, const char *newk)
{
assert(h && oldk && newk);
if (strcmp(oldk, newk) == 0)
return;
hash_insert(h, newk, hash_remove(h, oldk));
}