diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2014-07-19 08:48:45 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2014-07-19 08:48:45 +0000 |
commit | 4d6a2edc505d85490bd331cf7328eb27c701a45a (patch) | |
tree | 7f8f32dc3bcc1c56dae445fc8c159f0789d515a4 /usr.sbin | |
parent | 4c35363e161dd51eab6bb955b964fcd01278caaa (diff) |
actually use the cve match_location correctly.
problem noticed by aja@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgAdd.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm index 27cb639d4c2..1cdd474d6b0 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgAdd.pm,v 1.72 2014/07/12 22:08:23 espie Exp $ +# $OpenBSD: PkgAdd.pm,v 1.73 2014/07/19 08:48:44 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -280,7 +280,8 @@ sub check_security if (defined $bad) { require OpenBSD::PkgSpec; my $spec = OpenBSD::PkgSpec->new($bad); - if ($spec->match_locations([$h->{location}])) { + my $r = $spec->match_locations([$h->{location}]); + if (@$r != 0) { $error++; } } |