]> git.pond.sub.org Git - empserver/commit
Avoid seqno mismatch oops in recursive land unit supply
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 28 May 2008 20:30:36 +0000 (22:30 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 28 May 2008 20:30:36 +0000 (22:30 +0200)
commitaacd0fb754ef060af92bb08907c5cda196bf34e3
tree8d7477845b526f38d556463e9cc57435a98e9dfb
parent7f17369491f9d6a01f35d1017d9da49b308f80b4
Avoid seqno mismatch oops in recursive land unit supply

Before s_commod() attempts to recursively supply a supply unit it
wants to use as supply source, it zaps the unit's load.  When
actually_doit is false, it later restores the old load by overwriting
the change with a saved copy of the unit.  That triggers a seqno
mismatch oops.

Avoid that by copying the new sequence number to the saved copy.
src/lib/subs/supply.c