- /* Setup packet: expected only in state SENTMSG4 or RUN */
- if (st->state!=SITE_SENTMSG4 && st->state!=SITE_RUN) {
+ /* Setup packet: expected only in state SENTMSG4 */
+ /* (may turn up in state RUN if our return MSG6 was lost
+ and the new key has already been activated. In that
+ case we should treat it as an ordinary PING packet. We
+ can't pass it to process_msg5() because the
+ new_transform will now be null. XXX) */
+ if (st->state!=SITE_SENTMSG4) {