adding a delta to the queue. If the session_id differs there is no
need for deltas since a snapshot must be fetched.
OK job@ benno@ deraadt@
/* optimisation, add only deltas that could be interesting */
if (nxml->repository->serial != 0 &&
- nxml->repository->serial < delta_serial) {
+ nxml->repository->serial < delta_serial &&
+ nxml->repository->session_id != NULL &&
+ strcmp(nxml->session_id, nxml->repository->session_id) == 0) {
if (add_delta(nxml, delta_uri, delta_hash, delta_serial) == 0)
PARSE_FAIL(p, "parse failed - adding delta failed");
}