MT#55283 Prevent warning logs when recording-method is pcap #2

If recording-method is pcap, then proc is zero-initialized, so
meta_filepath is empty. This shows many logs such as:

[core] Failed to open recording metadata file '(null)' for writing: Bad address

Prevent them by returning earlier.

Fixes #1889 for real this time.

Amends commit 759fd72dc6.

Closes #1924

Change-Id: I25c9acefba9ee129354fd799ef493af86b9eab2c
pull/1855/merge
Orgad Shaneh 3 weeks ago committed by Richard Fuchs
parent f796537ef3
commit 312997c21d

@ -835,6 +835,9 @@ static int vappend_meta_chunk(struct recording *recording, const char *buf, unsi
const char *label_fmt, va_list ap)
{
struct iovec iov;
if (!recording->proc.meta_filepath)
return -1;
iov.iov_base = (void *) buf;
iov.iov_len = buflen;

Loading…
Cancel
Save