]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Completed state handling in isakmp_cert_pre
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 17:01:09 +0000 (19:01 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 17:01:09 +0000 (19:01 +0200)
Should not be a problem, but makes static analyzers happy.

src/libcharon/sa/ikev1/tasks/isakmp_cert_pre.c

index a40bdf176b346128e3b0cb459204d6bb535ad089..d48484f090a4253cdbf3d37963acd09995609c97 100644 (file)
@@ -410,6 +410,8 @@ METHOD(task_t, process_r, status_t,
                                        process_certreqs(this, message);
                                        process_certs(this, message);
                                        return SUCCESS;
+                               default:
+                                       return FAILED;
                        }
                }
                case AGGRESSIVE:
@@ -455,6 +457,8 @@ METHOD(task_t, build_r, status_t,
                                        return NEED_MORE;
                                case CR_AUTH:
                                        return NEED_MORE;
+                               default:
+                                       return FAILED;
                        }
                case AGGRESSIVE:
                        switch (this->state)