Commit ae106447 authored by Mike Hibler's avatar Mike Hibler

Fix findiface code here too

parent f7d54001
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2008 University of Utah and the Flux Group.
# Copyright (c) 2000-2009 University of Utah and the Flux Group.
# All rights reserved.
#
# TODO: Signal handlers for protecting db files.
......@@ -753,7 +753,13 @@ sub findiface($;$)
$iface = <FIF>;
if (! close(FIF)) {
return 0;
if (!defined($ip)) {
return 0;
}
#
# MAC was bogus, if we had an IP, look that up instead
#
$iface = "";
}
$iface =~ s/\n//g;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment