Skip to content

Commit e846aee

Browse files
committed
server session BUGFIX typo
Fixes #275
1 parent a2d4cb9 commit e846aee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/session_server_ssh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ nc_server_ssh_del_authkey(const char *pubkey_path, const char *pubkey_base64, NC
648648
} else {
649649
for (i = 0; i < server_opts.authkey_count; ++i) {
650650
if ((!pubkey_path || !strcmp(server_opts.authkeys[i].path, pubkey_path))
651-
&& (!pubkey_base64 || strcmp(server_opts.authkeys[i].base64, pubkey_base64))
651+
&& (!pubkey_base64 || !strcmp(server_opts.authkeys[i].base64, pubkey_base64))
652652
&& (!type || (server_opts.authkeys[i].type == type))
653653
&& (!username || !strcmp(server_opts.authkeys[i].username, username))) {
654654
lydict_remove(server_opts.ctx, server_opts.authkeys[i].path);

0 commit comments

Comments
 (0)