Skip to content

Commit

Permalink
GUACAMOLE-1290: Migrate SSH certificate auth support to new memory ma…
Browse files Browse the repository at this point in the history
…nagement functions.
  • Loading branch information
mike-jumper committed Oct 26, 2023
1 parent bb14ee9 commit e7c1deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common-ssh/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ int guac_common_ssh_user_import_public_key(guac_common_ssh_user* user,
char* public_key) {

/* Free existing public key, if present */
free(user->public_key);
user->public_key = strdup(public_key);
guac_mem_free(user->public_key);
user->public_key = guac_strdup(public_key);

/* Fail if key could not be read */
return user->public_key == NULL;
Expand Down

0 comments on commit e7c1deb

Please sign in to comment.