summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/providers/data_provider_be.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/providers/data_provider_be.c b/server/providers/data_provider_be.c
index 675fb6342..4e99f5628 100644
--- a/server/providers/data_provider_be.c
+++ b/server/providers/data_provider_be.c
@@ -190,6 +190,8 @@ static int be_file_request(struct be_ctx *ctx,
struct tevent_timer *te;
struct timeval tv;
+ if (!fn || !req) return EINVAL;
+
areq = talloc(req, struct be_async_req);
if (!areq) {
return ENOMEM;