From: Martin Willi Date: Thu, 6 Mar 2014 16:25:21 +0000 (+0100) Subject: imv: Return an empty enumerator instead of null, as expected by callers X-Git-Tag: 5.2.0dr6~24^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ede10dd9746fac902ef23cba2f6e69461a1a42e3;p=thirdparty%2Fstrongswan.git imv: Return an empty enumerator instead of null, as expected by callers --- diff --git a/src/libimcv/imv/imv_session.c b/src/libimcv/imv/imv_session.c index 14fea2b18a..faa22c3df6 100644 --- a/src/libimcv/imv/imv_session.c +++ b/src/libimcv/imv/imv_session.c @@ -219,7 +219,7 @@ METHOD(imv_session_t, create_workitem_enumerator, enumerator_t*, { if (!this->policy_started) { - return NULL; + return enumerator_create_empty(); } return this->workitems->create_enumerator(this->workitems); }