diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-21 16:02:06 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-21 16:02:06 +0000 |
commit | 6a5fce00fcee9dc7af673dc7209e2c81bf72c313 (patch) | |
tree | afd6ca4c2f6c0dae049e867b0cb9253085a220ed /channels | |
parent | 281f512c340f1aefba6418840b179be5b4450c36 (diff) |
Merged revisions 99301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r99301 | file | 2008-01-21 12:01:00 -0400 (Mon, 21 Jan 2008) | 4 lines
Bump the buffer size for Via headers up to 512. There are some exceptionally large Via headers out there.
(closes issue #11783)
Reported by: ofirroval
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99302 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9502cb8c1..c3e39e1f8 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6858,14 +6858,14 @@ static int copy_via_headers(struct sip_pvt *p, struct sip_request *req, const st int start = 0; for (;;) { - char new[256]; + char new[512]; const char *oh = __get_header(orig, field, &start); if (ast_strlen_zero(oh)) break; if (!copied) { /* Only check for empty rport in topmost via header */ - char leftmost[256], *others, *rport; + char leftmost[512], *others, *rport; /* Only work on leftmost value */ ast_copy_string(leftmost, oh, sizeof(leftmost)); @@ -10749,7 +10749,7 @@ static attribute_unused void check_via_response(struct sip_pvt *p, struct sip_re /*! \brief check Via: header for hostname, port and rport request/answer */ static void check_via(struct sip_pvt *p, struct sip_request *req) { - char via[256]; + char via[512]; char *c, *pt; struct hostent *hp; struct ast_hostent ahp; |