Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Dec 1, 2023
1 parent d143a0c commit 5728054
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ static int w_set_adv_port(struct sip_msg *msg, str *adv_port)

static int w_f_send_sock(struct sip_msg *msg, struct socket_info *si)
{
msg->force_send_socket=si;
msg->force_send_socket=(const struct socket_info *)si;

return 1;
}
Expand Down
3 changes: 2 additions & 1 deletion modules/proto_sctp/sctp_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,11 @@ int proto_sctp_send(const struct socket_info *source, char *buf, unsigned len,
{
int n;
int tolen;
struct sockaddr s = to->s; /* XXX Linux defines sctp_sendmsg without const */

tolen=sockaddru_len(*to);
again:
n=sctp_sendmsg(source->socket, buf, len, &to->s, tolen, 0, 0, 0, 0, 0);
n=sctp_sendmsg(source->socket, buf, len, &s, tolen, 0, 0, 0, 0, 0);
#ifdef XL_DEBUG
LM_INFO("send status: %d\n", n);
#endif
Expand Down

0 comments on commit 5728054

Please sign in to comment.