From 92bd0358dcf23d5286150f48253162dea0e65564 Mon Sep 17 00:00:00 2001
From: Leigh B Stoller <stoller@flux.utah.edu>
Date: Tue, 13 Aug 2013 08:07:55 -0600
Subject: [PATCH] Minor bug fix that prevented tunnels from being given to xen
 VMs.

---
 tmcd/tmcd.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/tmcd/tmcd.c b/tmcd/tmcd.c
index f8d1288c29..fee74f0329 100644
--- a/tmcd/tmcd.c
+++ b/tmcd/tmcd.c
@@ -2255,15 +2255,7 @@ COMMAND_PROTOTYPE(doifconfig)
 		      reqp->nodeid);
 		return 1;
 	}
-	if ((nrows = (int)mysql_num_rows(res)) == 0) {
-		mysql_free_result(res);
-		/* XXX not sure why this is ever an error? */
-		if (!reqp->isplabdslice && num_interfaces == 0) {
-			error("%s: IFCONFIG: No interfaces!\n", reqp->nodeid);
-			return 1;
-		}
-		return 0;
-	}
+	nrows = (int)mysql_num_rows(res);
 	while (nrows) {
 		char *bufp   = buf;
 		char *ifacetype;
@@ -2380,7 +2372,6 @@ COMMAND_PROTOTYPE(doifconfig)
 	}
 	mysql_free_result(res);
 
-
 	/*
 	 * Containers do not see egre/gre tunnels, they see plain interfaces,
 	 * since the tunnel was set up in root (dom0) context. This applies to
-- 
GitLab