diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2025-02-06 17:20:22 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-06 17:20:22 -0600 |
| commit | 3d61bbe0d9aa2785a6deb1d8465be2b0956891c7 (patch) | |
| tree | 6db0434c41c4848845cb4519ea1e06d6471d5eb5 /zebra/zserv.c | |
| parent | 8b5df229061e92bee844a20e3fcc292edd8f7f7b (diff) | |
| parent | ae8ee154efb45825179e9999312c347275093bf2 (diff) | |
Merge pull request #18042 from FRRouting/mergify/bp/dev/10.3/pr-17865
Coverity 2024 new hotness (backport #17865)
Diffstat (limited to 'zebra/zserv.c')
| -rw-r--r-- | zebra/zserv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c index 7ef3582329..6965c285cd 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -937,6 +937,10 @@ void zserv_close(void) /* * Open zebra's ZAPI listener socket. This is done early during startup, * before zebra is ready to listen and accept client connections. + * + * This function should only ever be called from the startup pthread + * from main.c. If it is called multiple times it will cause problems + * because it causes the zsock global variable to be setup. */ void zserv_open(const char *path) { |
