]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
imv: Return an empty enumerator instead of null, as expected by callers
authorMartin Willi <martin@revosec.ch>
Thu, 6 Mar 2014 16:25:21 +0000 (17:25 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:53:10 +0000 (15:53 +0200)
src/libimcv/imv/imv_session.c

index 14fea2b18ab65102d80a1fa1484297416b85ba80..faa22c3df685184aea6759ffddfc6a1916a4cb9d 100644 (file)
@@ -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);
 }