Skip to content
Snippets Groups Projects
Commit 86a30823 authored by Josh Brooks's avatar Josh Brooks
Browse files

Code cleanup, add edge case to ndf parsing

parent d887b76f
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,6 @@ var ExampleJSON = `{"Timestamp": "2019-06-04T20:48:48-07:00", "gateways": [{"Add
// }
//}
// Tests that VerifyNDF() panics when given the incorrect RSA public key.
func TestVerifyNDF_ErrPublicKey(t *testing.T) {
// Generate RSA private key and fake RSA public key
......
......@@ -40,7 +40,7 @@ func PollNdf(currentDef *ndf.NetworkDefinition, comms *client.Comms) (*ndf.Netwo
}
//If there was no error and the response is nil, client's ndf is up-to-date
if response == nil {
if response == nil || response.Ndf == nil {
globals.Log.DEBUG.Printf("Client NDF up-to-date")
return nil, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment