Przeglądaj źródła

Fix for network not found in netconf.

Adam Ierymenko 11 lat temu
rodzic
commit
999e963533
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      netconf-service/index.js

+ 1 - 1
netconf-service/index.js

@@ -291,7 +291,7 @@ function doNetconfRequest(message)
 
 		// network lookup
 		DB.hgetall(networkKey,function(err,obj) {
-			if (obj.id === nwid)
+			if ((!err)&&(obj)&&(obj.id === nwid))
 				network = obj;
 			return next(null);
 		});