minor cleanup

This commit is contained in:
Ailin Nemui 2024-04-01 16:33:36 +02:00
commit 98b391f62e
2 changed files with 6 additions and 5 deletions

View file

@ -137,7 +137,8 @@ static scram_status process_server_first(SCRAM_SESSION_REC *session, const char
param_count = g_strv_length(params);
if (param_count < 3) {
session->error = g_strdup_printf("Invalid server-first-message: %s", data);
/* Invalid server-first-message */
session->error = g_strdup_printf("%s", data);
g_strfreev(params);
return SCRAM_ERROR;
}
@ -300,4 +301,4 @@ scram_status scram_process(SCRAM_SESSION_REC *session, const char *input, char *
}
return status;
}
}