summaryrefslogtreecommitdiff
path: root/lib/northbound_grpc.cpp
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-05-09 00:50:45 -0300
committerRenato Westphal <renato@opensourcerouting.org>2020-05-09 00:50:45 -0300
commit69ec58328965fd7fee372972496edb32e99b42cb (patch)
treeb6e9061291c5940c71cc081be98c2269289de8d1 /lib/northbound_grpc.cpp
parent0dca7bb209ab397833ba3cbc9a9ab5ba7d23c5a5 (diff)
lib: fix undue warning during gRPC module initialization
This warning only shows up when a daemon is started with --log=stdout. Fix it. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/northbound_grpc.cpp')
-rw-r--r--lib/northbound_grpc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/northbound_grpc.cpp b/lib/northbound_grpc.cpp
index 96a11d67bd..a664fbac4a 100644
--- a/lib/northbound_grpc.cpp
+++ b/lib/northbound_grpc.cpp
@@ -1406,6 +1406,8 @@ static int frr_grpc_module_very_late_init(struct thread *thread)
if (frr_grpc_init(&port) < 0)
goto error;
+ return 0;
+
error:
flog_err(EC_LIB_GRPC_INIT, "failed to initialize the gRPC module");
return -1;