X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/upsgraph/blobdiff_plain/0e74e3d8b878f134b1b4cd1f207c1765482a97e5..de10ff5911734bcfc735c155aaf70f3dbf6f0414:/upsgraph.pl diff --git a/upsgraph.pl b/upsgraph.pl index 100c52b..9887d0c 100755 --- a/upsgraph.pl +++ b/upsgraph.pl @@ -58,6 +58,7 @@ sub fetch_snmp(@) { if (!$session) { print STDERR "session error: $error"; + return undef; } $session->translate(0);