Author: mlschroe Date: Tue Oct 21 12:59:16 2008 New Revision: 11427 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11427&view=rev Log: - make dataiterator safer Modified: trunk/sat-solver/src/repodata.c Modified: trunk/sat-solver/src/repodata.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/repodata.c?rev=114... ============================================================================== --- trunk/sat-solver/src/repodata.c (original) +++ trunk/sat-solver/src/repodata.c Tue Oct 21 12:59:16 2008 @@ -1045,6 +1045,8 @@ switch (di->state) { case di_enterrepo: di_enterrepo: + if (!di->repo) + goto di_bye; if (!(di->flags & SEARCH_THISSOLVID)) { di->solvid = di->repo->start - 1; /* reset solvid iterator */ @@ -1363,7 +1365,7 @@ di->solvid = solvid; if (solvid) di->flags |= SEARCH_THISSOLVID; - di->state = di_entersolvable; + di->state = di_enterrepo; } void -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org