From: Pekka Riikonen Date: Sat, 10 May 2014 10:51:44 +0000 (+0300) Subject: silcclient: fix error reporting in silc_client_init X-Git-Tag: silc.client.1.1.11~7 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=071aff87b3b9aa4005ab3012ffd688fe10dcee9e silcclient: fix error reporting in silc_client_init --- diff --git a/lib/silcclient/client.c b/lib/silcclient/client.c index f72a4a72..f2db81e0 100644 --- a/lib/silcclient/client.c +++ b/lib/silcclient/client.c @@ -1020,18 +1020,18 @@ SilcBool silc_client_init(SilcClient client, const char *username, if (!silc_identifier_verify(username, strlen(username), SILC_STRING_UTF8, 128)) { SILC_LOG_ERROR(("Malformed username '%s'. Username must be UTF-8 string", - client->username)); + username)); return FALSE; } if (!silc_identifier_verify(hostname, strlen(hostname), SILC_STRING_UTF8, 256)) { SILC_LOG_ERROR(("Malformed hostname '%s'. Hostname must be UTF-8 string", - client->hostname)); + hostname)); return FALSE; } if (!silc_utf8_valid(realname, strlen(realname))) { SILC_LOG_ERROR(("Malformed realname '%s'. Realname must be UTF-8 string", - client->realname)); + realname)); return FALSE; }