fix buffer still to small

This commit is contained in:
duffy 2026-01-29 21:54:38 +01:00
parent 411b2fca23
commit c469c1425b
1 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ static esp_err_t send_register(bool with_auth)
{ {
const device_config_t* config = config_get(); const device_config_t* config = config_get();
char buf[SIP_BUFFER_SIZE]; char buf[SIP_BUFFER_SIZE];
char auth_header[512] = ""; char auth_header[1024] = "";
generate_branch(s_branch, sizeof(s_branch)); generate_branch(s_branch, sizeof(s_branch));
@ -342,7 +342,7 @@ static esp_err_t send_response(int code, const sip_message_t* req)
} }
// To-Tag hinzufügen wenn nicht vorhanden // To-Tag hinzufügen wenn nicht vorhanden
char to_header[256]; char to_header[512];
if (strlen(req->to_tag) > 0) { if (strlen(req->to_tag) > 0) {
snprintf(to_header, sizeof(to_header), "%s", req->to); snprintf(to_header, sizeof(to_header), "%s", req->to);
} else { } else {