|
@@ -13,6 +13,8 @@
|
|
#include "udp_server.h"
|
|
#include "udp_server.h"
|
|
#include "route.h"
|
|
#include "route.h"
|
|
|
|
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+#include <sys/socket.h>
|
|
#include <netdb.h>
|
|
#include <netdb.h>
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
|
|
|
|
@@ -41,7 +43,7 @@ int do_action(struct action* a, struct sip_msg* msg)
|
|
if (ret>=0) ret=1;
|
|
if (ret>=0) ret=1;
|
|
break;
|
|
break;
|
|
case SEND_T:
|
|
case SEND_T:
|
|
- to=(struct sockaddr_in*) malloc(sizeof(struct sockaddr));
|
|
|
|
|
|
+ to=(struct sockaddr_in*) malloc(sizeof(struct sockaddr_in));
|
|
if (to==0){
|
|
if (to==0){
|
|
LOG(L_ERR, "ERROR: do_action: "
|
|
LOG(L_ERR, "ERROR: do_action: "
|
|
"memory allocation failure\n");
|
|
"memory allocation failure\n");
|