summaryrefslogtreecommitdiff
path: root/lib/header.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-06-19 16:08:00 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-06-19 16:08:00 +0300
commit880a28f2ff45da7d7003db9c270d1ed173cb90f0 (patch)
tree38c0a7838a9634b60b193b4ad4d29537371f206e /lib/header.c
parent1c445fcd974eedd0e533487a40214b328b1eaadf (diff)
downloadrpm-880a28f2ff45da7d7003db9c270d1ed173cb90f0.tar.gz
rpm-880a28f2ff45da7d7003db9c270d1ed173cb90f0.tar.bz2
rpm-880a28f2ff45da7d7003db9c270d1ed173cb90f0.zip
Dumb, dumb thinko/leftover from earlier prototype...
Diffstat (limited to 'lib/header.c')
-rw-r--r--lib/header.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/header.c b/lib/header.c
index 3ed0d0e34..7ecfea995 100644
--- a/lib/header.c
+++ b/lib/header.c
@@ -1597,7 +1597,8 @@ static int headerPutType(Header h, rpmTag tag, rpmTagType reqtype,
int valid = 1;
/* Basic sanity checks: type must match and there must be data to put */
- if (td.type != reqtype || size < 1 || data == NULL || h == NULL) {
+ if ((type & RPM_MASK_TYPE) != reqtype
+ || size < 1 || data == NULL || h == NULL) {
valid = 0;
}