1
0
mirror of https://github.com/git/git.git synced 2024-09-26 18:41:28 +02:00

Merge branch 'sg/upload-pack-error-message-fix'

An error message from "git upload-pack", which responds to "git
fetch" requests, had a trialing NUL in it, which has been
corrected.

* sg/upload-pack-error-message-fix:
  upload-pack: don't send null character in abort message to the client
This commit is contained in:
Junio C Hamano 2024-03-05 09:44:43 -08:00
commit e58a4de3bb

View File

@ -463,7 +463,7 @@ static void create_pack_file(struct upload_pack_data *pack_data,
fail:
free(output_state);
send_client_data(3, abort_msg, sizeof(abort_msg),
send_client_data(3, abort_msg, strlen(abort_msg),
pack_data->use_sideband);
die("git upload-pack: %s", abort_msg);
}