diff options
| author | Mark Stapp <mjs.ietf@gmail.com> | 2025-02-27 11:51:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-27 11:51:26 -0500 |
| commit | bc1253fa849033fe6831f934387a62515f86007c (patch) | |
| tree | fac4c1ab1351a2f5e54c299dcf5be31c030b806a /lib/zclient.c | |
| parent | 3ea34a0b593942aa4abb2c4d29e3dff23c32d922 (diff) | |
| parent | 14c4678771d8e061a08e158da1a5f37481b38a5b (diff) | |
Merge pull request #18270 from donaldsharp/zclient_crash_in_label_chunk
lib: Prevent crash in getting label chunk
Diffstat (limited to 'lib/zclient.c')
| -rw-r--r-- | lib/zclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 5deea8f0cf..532771cb93 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -3664,7 +3664,7 @@ int lm_get_label_chunk(struct zclient *zclient, uint8_t keep, uint32_t base, if (zclient_debug) zlog_debug("Getting Label Chunk"); - if (zclient->sock < 0) + if (!zclient || zclient->sock < 0) return -1; /* send request */ |
