projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return correct command type in SILCOPER in case of error.
[silc.git]
/
apps
/
silcd
/
command.c
diff --git
a/apps/silcd/command.c
b/apps/silcd/command.c
index ed0964fcf7b1bba5cf9f1795492a50e322fbdc4e..a42d254c8e195314d730a87cbf7a40a1572a973d 100644
(file)
--- a/
apps/silcd/command.c
+++ b/
apps/silcd/command.c
@@
-4486,7
+4486,7
@@
SILC_SERVER_CMD_FUNC(silcoper)
username = silc_identifier_check(username, tmp_len, SILC_STRING_UTF8, 128,
&tmp_len);
if (!username) {
username = silc_identifier_check(username, tmp_len, SILC_STRING_UTF8, 128,
&tmp_len);
if (!username) {
- silc_server_command_send_status_reply(cmd, SILC_COMMAND_OPER,
+ silc_server_command_send_status_reply(cmd, SILC_COMMAND_
SILC
OPER,
SILC_STATUS_ERR_BAD_USERNAME,
0);
goto out;
SILC_STATUS_ERR_BAD_USERNAME,
0);
goto out;
@@
-4533,7
+4533,7
@@
SILC_SERVER_CMD_FUNC(silcoper)
}
if (!result) {
/* Authentication failed */
}
if (!result) {
/* Authentication failed */
- silc_server_command_send_status_reply(cmd, SILC_COMMAND_OPER,
+ silc_server_command_send_status_reply(cmd, SILC_COMMAND_
SILC
OPER,
SILC_STATUS_ERR_AUTH_FAILED, 0);
goto out;
}
SILC_STATUS_ERR_AUTH_FAILED, 0);
goto out;
}