Commit 50f364ac authored by Leigh Stoller's avatar Leigh Stoller

Add sanity check on node client ids.

parent 0156edbf
...@@ -1239,6 +1239,17 @@ sub GetTicketAuxAux($) ...@@ -1239,6 +1239,17 @@ sub GetTicketAuxAux($)
next; next;
} }
#
# Catch this early.
#
if (! TBcheck_dbslot($node_nickname, "virt_nodes", "vname",
TBDB_CHECKDBSLOT_WARN|TBDB_CHECKDBSLOT_ERROR)) {
$response =
GeniResponse->Create(GENIRESPONSE_BADARGS, undef,
"Invalid client id for node: $node_nickname");
goto bad;
}
# #
# #
# Lan nodes are fake and do not go into the virt topo. Need # Lan nodes are fake and do not go into the virt topo. Need
......
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