This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
rtpengine
mirror of
https://github.com/sipwise/rtpengine
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
823
Wiki
Activity
Browse Source
fix a segfault and improve debug build
git.mgm/mediaproxy-ng/2.0
Richard Fuchs
14 years ago
parent
5d9cb37f1f
commit
305ce520ae
2 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
daemon/Makefile
+1
-1
daemon/call.c
+ 2
- 1
daemon/Makefile
View File
@ -6,7 +6,6 @@ CC= gcc
CFLAGS
=
-g -Wall
`
pkg-config --cflags glib-2.0
`
`
pcre-config --cflags
`
-fno-strict-aliasing
CFLAGS
+=
-I/lib/modules/
`
uname -r
`
/build/include/ -I../kernel-module/
CFLAGS
+=
-D_GNU_SOURCE
CFLAGS
+=
-O2
i
f
e
q
(
$(
REDIS
)
,
y
e
s
)
CFLAGS
+=
-I
$(
LIBREDISDIR
)
@ -16,6 +15,8 @@ endif
i
f
e
q
(
$(
DBG
)
,
y
e
s
)
CFLAGS
+=
-D__DEBUG
=
1
e
l
s
e
CFLAGS
+=
-O2
e
n
d
i
f
LDFLAGS
=
`
pkg-config --libs glib-2.0
`
`
pcre-config --libs
`
+ 1
- 1
daemon/call.c
View File
@ -1174,7 +1174,7 @@ static struct call *call_get_or_create(const char *callid, struct callmaster *m)
static
int
addr_parse_udp
(
struct
stream
*
st
,
const
char
*
*
o
)
{
u_int32_t
ip4
;
ZERO
(
st
)
;
ZERO
(
*
st
)
;
if
(
o
[
5
]
&
&
*
o
[
5
]
)
{
ip4
=
inet_addr
(
o
[
5
]
)
;
if
(
ip4
=
=
-
1
)
Write
Preview
Loading…
Cancel
Save