diff options
Diffstat (limited to 'stream/stream_libarchive.c')
-rw-r--r-- | stream/stream_libarchive.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream_libarchive.c b/stream/stream_libarchive.c index 61c95cc349..ff2d5123e5 100644 --- a/stream/stream_libarchive.c +++ b/stream/stream_libarchive.c @@ -583,6 +583,8 @@ static int archive_entry_open(stream_t *stream) char *base = talloc_strdup(p, stream->path); char *name = strchr(base, '|'); + if (!name) + return STREAM_ERROR; *name++ = '\0'; if (name[0] == '/') name += 1; |