michael@376: Index: Makefile.defs michael@376: --- Makefile.defs.orig 2009-03-23 19:32:01 +0100 michael@376: +++ Makefile.defs 2009-03-24 19:10:36 +0100 michael@376: @@ -1161,6 +1161,8 @@ michael@376: michael@376: endif #mode=release michael@376: michael@376: +LDFLAGS += -L$(prefix)/lib michael@376: +LIBS += -lfsl michael@376: michael@376: #*FLAGS used for compiling the modules michael@376: ifeq ($(CC_NAME), gcc) michael@376: @@ -1397,8 +1399,8 @@ michael@376: michael@376: #add libssl if needed michael@376: ifneq ($(TLS),) michael@376: -DEFS+= -I$(LOCALBASE)/ssl/include -I$(LOCALBASE)/include -I$(SYSBASE)/include/openssl michael@376: -LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto michael@376: +DEFS+= -I$(prefix)/include michael@376: +LIBS+= -L$(prefix)/lib -lssl -lcrypto michael@376: endif michael@376: michael@376: #add libsctp if needed michael@376: Index: modules/permissions/parse_config.c michael@376: --- modules/permissions/parse_config.c.orig 2009-03-23 19:31:32 +0100 michael@376: +++ modules/permissions/parse_config.c 2009-03-24 19:10:36 +0100 michael@376: @@ -114,8 +114,11 @@ michael@376: except = strstr(str, " EXCEPT "); michael@376: if (except) { michael@376: /* exception found */ michael@376: - strncpy(str2, str, except-str); michael@376: - str2[except-str] = '\0'; michael@376: + int l = except - str; michael@376: + if (l > sizeof(str2) - 1) michael@376: + l = sizeof(str2) - 1; michael@376: + strncpy(str2, str, l); michael@376: + str2[l] = '\0'; michael@376: /* except+8 points to the exception */ michael@376: if (parse_expression_list(except+8, e_exceptions)) { michael@376: /* error */ michael@376: @@ -124,7 +127,8 @@ michael@376: } michael@376: } else { michael@376: /* no exception */ michael@376: - strcpy(str2, str); michael@376: + strncpy(str2, str, sizeof(str2)-1); michael@376: + str2[sizeof(str2)-1] = '\0'; michael@376: *e_exceptions = NULL; michael@376: } michael@376: michael@376: Index: rtpproxy-1.2.1/main.c michael@376: --- rtpproxy-1.2.1/main.c.orig 2009-03-24 05:46:13 +0100 michael@376: +++ rtpproxy-1.2.1/main.c 2009-03-24 19:10:36 +0100 michael@376: @@ -88,7 +88,11 @@ michael@376: bindhost = NULL; michael@376: michael@376: if ((n = resolve(ia, pf, bindhost, servname, AI_PASSIVE)) != 0) michael@376: +#if defined(__sun__) michael@376: + errx(1, "setbindhost"); michael@376: +#else michael@376: errx(1, "setbindhost: %s", gai_strerror(n)); michael@376: +#endif michael@376: } michael@376: michael@376: static void