Skip to content

Commit cddc008

Browse files
alexbakkerrfuchs
authored andcommitted
MT#55283 Increase input buffer size for getaddrinfo to 256
Previously, rtpengine would refuse to resolve any hostnames longer than 64 characters. Closes #2061 Change-Id: I5fe6c05f59a449f6e3b6b0f403d438626905101b (cherry picked from commit 694a3b0)
1 parent 4297fd6 commit cddc008

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ bool sockaddr_getaddrinfo_alt(sockaddr_t *a, sockaddr_t *a2, const char *s) {
695695
bool endpoint_parse_any_getaddrinfo_alt(endpoint_t *d, endpoint_t *d2, const char *s) {
696696
unsigned int len;
697697
const char *ep;
698-
char buf[64];
698+
char buf[256];
699699

700700
ep = strrchr(s, ':');
701701
if (!ep) {

0 commit comments

Comments
 (0)