Reported by Henrik Amren.
-/* Copyright (c) 2008, 2009 Nicira Networks
+/* Copyright (c) 2008, 2009, 2010 Nicira Networks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
port = port_lookup(br, if_name);
- if (port->n_ifaces > 1 && port->cfg->bond_fake_iface) {
+ if (port && port->n_ifaces > 1 && port->cfg->bond_fake_iface) {
return true;
}
return false;