From 1fa29bafdb70e1ac258698ae6721ea306ed46a73 Mon Sep 17 00:00:00 2001
From: Lionel Gauthier <lionel.gauthier@eurecom.fr>
Date: Wed, 5 Nov 2014 12:29:46 +0000
Subject: [PATCH] git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5973
 818b1a75-f10b-46b9-bf7c-635c3b92a50f

---
 openair-cn/GTPV1-U/gtpv1u_eNB.c  | 2 --
 openair-cn/GTPV1-U/gtpv1u_task.c | 6 ++++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/openair-cn/GTPV1-U/gtpv1u_eNB.c b/openair-cn/GTPV1-U/gtpv1u_eNB.c
index d0b735b613..9241040680 100644
--- a/openair-cn/GTPV1-U/gtpv1u_eNB.c
+++ b/openair-cn/GTPV1-U/gtpv1u_eNB.c
@@ -859,7 +859,6 @@ void *gtpv1u_eNB_task(void *args)
                                       udp_data_ind_p->peer_port,
                                       udp_data_ind_p->peer_address);
                 itti_free(ITTI_MSG_ORIGIN_ID(received_message_p), udp_data_ind_p->buffer);
-                udp_data_ind_p->buffer = NULL;
             }
             break;
 
@@ -916,7 +915,6 @@ void *gtpv1u_eNB_task(void *args)
                 }
                 /* Buffer is no longer needed, free it */
                 itti_free(ITTI_MSG_ORIGIN_ID(received_message_p), data_req_p->buffer);
-                data_req_p->buffer = NULL;
             }
             break;
 
diff --git a/openair-cn/GTPV1-U/gtpv1u_task.c b/openair-cn/GTPV1-U/gtpv1u_task.c
index c668aca153..ed2d706932 100644
--- a/openair-cn/GTPV1-U/gtpv1u_task.c
+++ b/openair-cn/GTPV1-U/gtpv1u_task.c
@@ -388,7 +388,6 @@ static void *gtpv1u_thread(void *args)
                                       udp_data_ind_p->peer_port,
                                       udp_data_ind_p->peer_address);
                 itti_free(ITTI_MSG_ORIGIN_ID(received_message_p), udp_data_ind_p->buffer);
-                udp_data_ind_p->buffer = NULL;
             }
             break;
 
@@ -431,6 +430,10 @@ static void *gtpv1u_thread(void *args)
                     NW_IN NwU8T    *tpdu,
                     NW_IN NwU16T    tpduLength,
                     NW_OUT NwGtpv1uMsgHandleT *phMsg)*/
+                    GTPU_DEBUG("GTPV1U_TUNNEL_DATA_REQ buffer %p seq num %d  %d bytes\n",
+                            data_req_p->buffer,
+                            gtpv1u_sgw_data.seq_num,
+                            data_req_p->length);
                     rc = nwGtpv1uGpduMsgNew(gtpv1u_sgw_data.gtpv1u_stack,
                                         00,// TO DO bearer_p->port, but not needed when looking at processing
                                         NW_FALSE,
@@ -455,7 +458,6 @@ static void *gtpv1u_thread(void *args)
                 }
                 /* Buffer is no longer needed, free it */
                 itti_free(ITTI_MSG_ORIGIN_ID(received_message_p), data_req_p->buffer);
-                data_req_p->buffer = NULL;
             }
             break;
             case TERMINATE_MESSAGE: {
-- 
GitLab