Skip to content

Commit

Permalink
out_http: fix port parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliendavid committed Mar 4, 2024
1 parent 11c9f99 commit 064c3a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/filters/out_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -2670,7 +2670,7 @@ static GF_Err httpout_initialize(GF_Filter *filter)
cplen = (u32) (sep-ctx->dst-7);
if (cplen>1023) cplen=1023;
strncpy(szIP, ctx->dst+7, cplen);
szIP[1023] = 0;
szIP[MIN(cplen,1023)] = 0;
sep = strchr(szIP, ':');
if (sep) {
port = atoi(sep+1);
Expand Down
2 changes: 1 addition & 1 deletion testsuite

0 comments on commit 064c3a1

Please sign in to comment.