From 4eb89ea4dcad4c01664b5331745f4e9a38facbd2 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Fri, 15 Nov 2019 08:58:23 +0000 Subject: [HICN-394] Add route commands add, list, del for the hicn-plugin Signed-off-by: Alberto Compagno Change-Id: I41641f6d27babaa1c413ecf2fe6eae0e499df97d --- ctrl/libhicnctrl/src/api.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'ctrl/libhicnctrl/src/api.c') diff --git a/ctrl/libhicnctrl/src/api.c b/ctrl/libhicnctrl/src/api.c index 14ee69b53..5afecf7e6 100644 --- a/ctrl/libhicnctrl/src/api.c +++ b/ctrl/libhicnctrl/src/api.c @@ -91,7 +91,6 @@ struct hc_sock_s { hc_sock_request_t * hc_sock_request_create(int seq, hc_data_t * data, HC_PARSE parse) { - assert(seq >= 0); assert(data); hc_sock_request_t * request = malloc(sizeof(hc_sock_request_t)); @@ -851,11 +850,7 @@ hc_execute_command(hc_sock_t * s, hc_msg_t * msg, size_t msg_len, } int seq = hc_sock_get_next_seq(s); - if (seq < 0) { - ERROR("[hc_execute_command] Could not get next sequence number"); - goto ERR_SEQ; - } - + /* Create state used to process the request */ hc_sock_request_t * request = NULL; request = hc_sock_request_create(seq, data, params->parse); @@ -902,7 +897,6 @@ ERR_PROCESS: ERR_MAP: hc_sock_request_free(request); ERR_REQUEST: -ERR_SEQ: hc_data_free(data); ERR_DATA: return -1; -- cgit 1.2.3-korg