Skip to content

Commit

Permalink
GUACAMOLE-1290: Merge migration of SSH certificate auth support to ne…
Browse files Browse the repository at this point in the history
…w memory management functions.
  • Loading branch information
jmuehlner authored Oct 26, 2023
2 parents 8d3414e + 4c467d5 commit f339b48
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 f339b48

Please sign in to comment.