openbsd-ports/net/silc-client/patches/patch-lib_silcclient_client_c

13 lines
608 B
Plaintext
Raw Normal View History

$OpenBSD: patch-lib_silcclient_client_c,v 1.1 2005/07/28 21:28:10 brad Exp $
--- lib/silcclient/client.c.orig Thu Mar 31 01:07:10 2005
+++ lib/silcclient/client.c Thu Jul 28 15:23:55 2005
@@ -137,7 +137,7 @@ bool silc_client_init(SilcClient client)
SILC_LOG_ERROR(("Malformed hostname '%s'", client->hostname));
return FALSE;
}
- if (!silc_utf8_valid(client->realname, strlen(client->realname))) {
+ if ((*client->realname != '\0') && (!silc_utf8_valid(client->realname, strlen(client->realname)))) {
SILC_LOG_ERROR(("Malformed realname '%s'", client->realname));
return FALSE;
}