]> git.pond.sub.org Git - empserver/commit - src/lib/update/finish.c
Fix assemble_dist_paths()'s recovery from invalid dist center
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 25 Feb 2011 07:00:59 +0000 (08:00 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 11 Apr 2011 20:29:13 +0000 (22:29 +0200)
commitf4db4e37b19f99f5cba3db2538569128a8535ddf
treefee47d4749fb56d829e227adf7af7ada4fd8739a
parent08cb463878c2a9b186ec0ecf588a608253df049d
Fix assemble_dist_paths()'s recovery from invalid dist center

The recovery avoided crashing here, but left the path costs undefined.
If they happend to be non-negative, dodistribute() still crashed.  Set
the costs to -1 to avoid that.

While there, oops on invalid distribution center.
src/lib/update/finish.c