summaryrefslogtreecommitdiffstats
path: root/ctrl/facemgr/src/interfaces/bonjour
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-10-31 14:14:37 +0000
committerGerrit Code Review <gerrit@fd.io>2019-10-31 14:14:37 +0000
commit7b8858d2b88e911371745bf01a8c5d9dc0915d3b (patch)
tree03164c4e090d1d8e8ba380aec045cb530481d63c /ctrl/facemgr/src/interfaces/bonjour
parent8259480129f8911e7c4085dea9876c61bc59314f (diff)
parent95170bf3a69597b49238bb7ff396d41f6dc94f30 (diff)
Merge "[HICN-369] Implement reconciliation state machine in face manager incl. reattempts in case of errors"
Diffstat (limited to 'ctrl/facemgr/src/interfaces/bonjour')
-rw-r--r--ctrl/facemgr/src/interfaces/bonjour/bonjour.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ctrl/facemgr/src/interfaces/bonjour/bonjour.c b/ctrl/facemgr/src/interfaces/bonjour/bonjour.c
index 4d09d89bb..87f1e1257 100644
--- a/ctrl/facemgr/src/interfaces/bonjour/bonjour.c
+++ b/ctrl/facemgr/src/interfaces/bonjour/bonjour.c
@@ -26,7 +26,6 @@
#include <hicn/util/log.h>
#include "../../common.h"
-#include "../../facelet.h"
#include "../../interface.h"
#include "../../util/map.h"
#include "mdns/mdns.h"
@@ -107,10 +106,15 @@ int bj_initialize(interface_t * interface, void * cfg)
WSAStartup(versionWanted, &wsaData);
#endif
- interface_register_fd(interface, data->sock, NULL);
+ if (interface_register_fd(interface, data->sock, NULL) < 0) {
+ ERROR("[bj_initialize] Error registering fd");
+ goto ERR_FD;
+ }
return 0;
+ERR_FD:
+ free(data->buffer);
ERR_BUFFER:
#ifndef __ANDROID__
ERR_SOCK_OPT: