silcclient: fix error reporting in silc_client_init
authorPekka Riikonen <priikone@silcnet.org>
Sat, 10 May 2014 10:51:44 +0000 (13:51 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 10 May 2014 10:51:44 +0000 (13:51 +0300)
lib/silcclient/client.c

index f72a4a7201ec64dba1f2b37f87457fbe1b81ebe6..f2db81e04f2ae76ff3b7611f98589bac236bffe2 100644 (file)
@@ -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;
   }