From: Panu Matilainen Date: Tue, 21 Feb 2012 12:14:09 +0000 (+0200) Subject: Flag error in tag container for non-extension tag retrieval X-Git-Tag: tznext/4.11.0.1.tizen20130304~657 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6a3d78a08bc48bce279967ba48d8c21e6ee2405;p=tools%2Flibrpm-tizen.git Flag error in tag container for non-extension tag retrieval - This should mostly be a can't happen case, but at least in theory region retrieval could fail. So could unknown data type, but a header with unknown data types shouldn't even load... Anyway, there could be further error cases we might be able to flag here. --- diff --git a/lib/header.c b/lib/header.c index d0c9b71..d741552 100644 --- a/lib/header.c +++ b/lib/header.c @@ -1310,6 +1310,9 @@ static int intGetTdEntry(Header h, rpmtd td, headerGetFlags flags) } } + if (rc == 0) + td->flags |= RPMTD_INVALID; + /* XXX 1 on success */ return ((rc == 1) ? 1 : 0); }