Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
bfa400bd
Commit
bfa400bd
authored
Jul 19, 2013
by
Ghislain MARY
Browse files
Fix compilation on Windows.
parent
e7192283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/channel.c
src/channel.c
+2
-1
No files found.
src/channel.c
View file @
bfa400bd
...
...
@@ -84,11 +84,12 @@ static void fix_incoming_via(belle_sip_request_t *msg, const struct addrinfo* or
char
received
[
NI_MAXHOST
];
char
rport
[
NI_MAXSERV
];
belle_sip_header_via_t
*
via
;
int
err
;
if
(
!
origin
)
{
belle_sip_warning
(
"cannot fix via for message [%p], probably a test"
,
msg
);
return
;
}
int
err
=
getnameinfo
(
origin
->
ai_addr
,
origin
->
ai_addrlen
,
received
,
sizeof
(
received
),
err
=
getnameinfo
(
origin
->
ai_addr
,
origin
->
ai_addrlen
,
received
,
sizeof
(
received
),
rport
,
sizeof
(
rport
),
NI_NUMERICHOST
|
NI_NUMERICSERV
);
if
(
err
!=
0
){
belle_sip_error
(
"fix_via: getnameinfo() failed: %s"
,
gai_strerror
(
errno
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment