Skip to content

Commit

Permalink
oops null deref
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdelisle committed Dec 30, 2011
1 parent 1123877 commit 8e847bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dht/dhtcore/RouterModule.c
Expand Up @@ -851,7 +851,7 @@ void RouterModule_addNode(const uint8_t key[Address_KEY_SIZE],
Address_getPrefix(&address);
NodeStore_addNode(module->nodeStore, &address, 0);
struct Node* best = RouterModule_getBest(address.ip6.bytes, module);
if (best->address.networkAddress_be != networkAddress_be) {
if (best && best->address.networkAddress_be != networkAddress_be) {
RouterModule_pingNode(best, module);
}
}
Expand Down

0 comments on commit 8e847bc

Please sign in to comment.