Browse Source

fix a segfault and improve debug build

git.mgm/mediaproxy-ng/2.0
Richard Fuchs 14 years ago
parent
commit
305ce520ae
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      daemon/Makefile
  2. +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
ifeq ($(REDIS),yes)
CFLAGS+= -I$(LIBREDISDIR)
@ -16,6 +15,8 @@ endif
ifeq ($(DBG),yes)
CFLAGS+= -D__DEBUG=1
else
CFLAGS+= -O2
endif
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)


Loading…
Cancel
Save