pluto: from_state is strictly lower than STATE_IKE_ROOF.
authorTobias Brunner <tobias@strongswan.org>
Mon, 18 Apr 2011 13:46:00 +0000 (15:46 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 11:48:50 +0000 (13:48 +0200)
src/pluto/demux.c

index 699e2d8..2946012 100644 (file)
@@ -1666,7 +1666,7 @@ process_packet(struct msg_digest **mdp)
         * Look up the appropriate microcode based on state and
         * possibly Oakley Auth type.
         */
-       passert(STATE_IKE_FLOOR <= from_state && from_state <= STATE_IKE_ROOF);
+       passert(STATE_IKE_FLOOR <= from_state && from_state < STATE_IKE_ROOF);
        smc = ike_microcode_index[from_state - STATE_IKE_FLOOR];
 
        if (st != NULL)