Browse code

- minor changes - inc'ed ver no (unstable version, not tested)

Andrei Pelinescu-Onciul authored on 19/02/2002 17:11:54
Showing 4 changed files
... ...
@@ -9,7 +9,7 @@
9 9
 VERSION = 0
10 10
 PATCHLEVEL = 8
11 11
 SUBLEVEL = 6
12
-EXTRAVERSION = -5
12
+EXTRAVERSION = -6x
13 13
 
14 14
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
15 15
 OS = $(shell uname -s)
... ...
@@ -45,7 +45,7 @@ int forward_request( struct sip_msg* msg, struct proxy_l * p)
45 45
 		goto error;
46 46
 	}
47 47
 
48
-	to=(struct sockaddr_in*)malloc(sizeof(struct sockaddr));
48
+	to=(struct sockaddr_in*)malloc(sizeof(struct sockaddr_in));
49 49
 	if (to==0){
50 50
 		LOG(L_ERR, "ERROR: forward_request: out of memory\n");
51 51
 		goto error;
... ...
@@ -153,7 +153,7 @@ int forward_reply(struct sip_msg* msg)
153 153
 		}
154 154
 	}
155 155
 	
156
-	to=(struct sockaddr_in*)malloc(sizeof(struct sockaddr));
156
+	to=(struct sockaddr_in*)malloc(sizeof(struct sockaddr_in));
157 157
 	if (to==0){
158 158
 		LOG(L_ERR, "ERROR: forward_reply: out of memory\n");
159 159
 		goto error;
... ...
@@ -495,7 +495,7 @@ int main(int argc, char** argv)
495 495
                                         }
496 496
                                         break;
497 497
 			case 'l':
498
-					/* add a new addr. to out address list */
498
+					/* add a new addr. to our address list */
499 499
 					if (addresses_no < MAX_LISTEN){
500 500
 						names[addresses_no]=(char*)malloc(strlen(optarg)+1);
501 501
 						if (names[addresses_no]==0){
... ...
@@ -107,7 +107,7 @@ int udp_init(unsigned long ip, unsigned short port)
107 107
 	int optval, optvallen;
108 108
 
109 109
 
110
-	addr=(struct sockaddr_in*)malloc(sizeof(struct sockaddr));
110
+	addr=(struct sockaddr_in*)malloc(sizeof(struct sockaddr_in));
111 111
 	if (addr==0){
112 112
 		LOG(L_ERR, "ERROR: udp_init: out of memory\n");
113 113
 		goto error;