Browse code

- xlog buitl by default - xlog minor 64 bit warnings fixed - get_out_socket from size fix - prin_cseq_num fix

Andrei Pelinescu-Onciul authored on 27/08/2003 16:10:24
Showing 4 changed files
... ...
@@ -36,7 +36,7 @@ skip_modules?=
36 36
 
37 37
 # if not set on the cmd. line or the env, exclude this modules:
38 38
 exclude_modules?= 			cpl cpl-c ext extcmd mangler pdt \
39
-							postgres snmp xlog  \
39
+							postgres snmp \
40 40
 							im radius_acc radius_auth \
41 41
 							jabber mysql \
42 42
 							auth_radius group_radius uri_radius 
... ...
@@ -16,6 +16,7 @@ x port receive.c pre_script_cb fix from stable
16 16
        tcp foo.bar:5063, udp foo.bar:5062, foo2.bar
17 17
 
18 18
 release:
19
+- print_cseq_num max. size fix.
19 20
 x backport: tcp conn id fix to stable + destroy_tcp 
20 21
 x backport: acc mem. leak fixes
21 22
 x backport: dns mem. leak fixes (resolve.[ch])
... ...
@@ -106,7 +106,7 @@ struct socket_info* get_out_socket(union sockaddr_union* to, int proto)
106 106
 				strerror(errno));
107 107
 		goto error;
108 108
 	}
109
-	len=sockaddru_len(from);
109
+	len=sizeof(from);
110 110
 	if (getsockname(temp_sock, &from.s, &len)==-1) {
111 111
 		LOG(L_ERR, "ERROR: get_out_socket: getsockname failed: %s\n",
112 112
 				strerror(errno));
... ...
@@ -209,12 +209,12 @@ static inline int print_content_length(str* dest, str* body)
209 209
  */
210 210
 static inline int print_cseq_num(str* _s, dlg_t* _d)
211 211
 {
212
-	static char cseq[10];
212
+	static char cseq[INT2STR_MAX_LEN];
213 213
 	char* tmp;
214 214
 	int len;
215 215
 
216 216
 	tmp = int2str(_d->loc_seq.value, &len);
217
-	if (len >= sizeof(cseq)) {
217
+	if (len > sizeof(cseq)) {
218 218
 		LOG(L_ERR, "print_cseq_num: cseq too big\n");
219 219
 		return -1;
220 220
 	}