From eaee4793769d244948038c39197e77a8a5a8cd6d Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Fri, 8 Apr 2011 12:24:31 +0200 Subject: [PATCH] Fix bad alignement of use_rports on 1.5. --- coreapi/sal_eXosip2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/sal_eXosip2.c b/coreapi/sal_eXosip2.c index 1987285f9..ec22836cd 100644 --- a/coreapi/sal_eXosip2.c +++ b/coreapi/sal_eXosip2.c @@ -367,7 +367,8 @@ int sal_listen_port(Sal *ctx, const char *addr, int port, SalTransport tr, int i eXosip_set_option(13,&err); /*13=EXOSIP_OPT_SRV_WITH_NAPTR, as it is an enum value, we can't use it unless we are sure of the version of eXosip, which is not the case*/ /*see if it looks like an IPv6 address*/ - eXosip_set_option(EXOSIP_OPT_USE_RPORT,&ctx->use_rports); + int use_rports = ctx->use_rports; // Copy char to int to avoid bad alignment + eXosip_set_option(EXOSIP_OPT_USE_RPORT,&use_rports); ipv6=strchr(addr,':')!=NULL; eXosip_enable_ipv6(ipv6);