Skip to content

Commit fda8a30

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 b5a7952 commit fda8a30

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
@@ -677,7 +677,7 @@ int sockaddr_getaddrinfo_alt(sockaddr_t *a, sockaddr_t *a2, const char *s) {
677677
int endpoint_parse_any_getaddrinfo_alt(endpoint_t *d, endpoint_t *d2, const char *s) {
678678
unsigned int len;
679679
const char *ep;
680-
char buf[64];
680+
char buf[256];
681681

682682
ep = strrchr(s, ':');
683683
if (!ep) {

0 commit comments

Comments
 (0)