projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
18d69a0
)
silcclient: fix error reporting in silc_client_init
author
Pekka Riikonen
<priikone@silcnet.org>
Sat, 10 May 2014 10:51:44 +0000
(13:51 +0300)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sat, 10 May 2014 10:51:44 +0000
(13:51 +0300)
lib/silcclient/client.c
patch
|
blob
|
history
diff --git
a/lib/silcclient/client.c
b/lib/silcclient/client.c
index f72a4a7201ec64dba1f2b37f87457fbe1b81ebe6..f2db81e04f2ae76ff3b7611f98589bac236bffe2 100644
(file)
--- 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",
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",
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",
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;
}
return FALSE;
}