From 32bca6492034eefee1acb5c71a01a0481ba03245 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 14 Dec 2014 15:40:29 +0100 Subject: [PATCH] lib/nfs/Connection: add assertions --- src/lib/nfs/Connection.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx index 433d49ecf..cae9ff102 100644 --- a/src/lib/nfs/Connection.cxx +++ b/src/lib/nfs/Connection.cxx @@ -380,6 +380,8 @@ NfsConnection::DeferClose(struct nfsfh *fh) assert(GetEventLoop().IsInside()); assert(in_event); assert(in_service); + assert(context != nullptr); + assert(fh != nullptr); deferred_close.push_front(fh); }