[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:
parent
31ae5ac0bf
commit
03ee43ca89
@ -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])
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user