From 53ebeacc0940f065f898783024ebe24a6519a1d3 Mon Sep 17 00:00:00 2001 From: Bill Fenner <> Date: Thu, 13 Apr 2006 04:03:53 +0000 Subject: [PATCH] Don't call mau_i_duplex_admin_old() if the device doesn't implement the table at all. --- Info/MAU.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Info/MAU.pm b/Info/MAU.pm index 6b6aefd4..8119fe30 100644 --- a/Info/MAU.pm +++ b/Info/MAU.pm @@ -169,7 +169,11 @@ sub mau_i_duplex_admin { # Older HP4000's don't implement ifMauDefaultType, but we can # figure out from ifMauAutoNegCapAdvertised what we'd like. if (!defined($mau_type_admin)) { - return mau_i_duplex_admin_old($mau,$mau_index,$mau_autostat); + if (defined($mau_index)) { + return mau_i_duplex_admin_old($mau,$mau_index,$mau_autostat); + } else { + return undef; + } } my %i_duplex_admin;