]> arthur.barton.de Git - netdata.git/commitdiff
Avoid dereference null pointer
authorChocobo1 <Chocobo1@users.noreply.github.com>
Sun, 25 Sep 2016 10:10:25 +0000 (18:10 +0800)
committerChocobo1 <Chocobo1@users.noreply.github.com>
Mon, 26 Sep 2016 03:40:54 +0000 (11:40 +0800)
src/registry.c

index 6f4d9011e9482c59d283fffc356fa690f620a126..a0fb629ada069cf3becf5da0a356f1c118ab1f58 100644 (file)
@@ -970,7 +970,7 @@ MACHINE *registry_request_machine(char *person_guid, char *machine_guid, char *u
     // make sure the machine exists
     m = registry_machine_find(request_machine);
     if(!m) {
-        info("Registry Machine URLs request: machine not found, person: '%s', machine '%s', url '%s', request machine '%s'", p->guid, m->guid, pu->url->url, request_machine);
+        info("Registry Machine URLs request: machine not found, person: '%s', machine '%s', url '%s', request machine '%s'", p->guid, machine_guid, pu->url->url, request_machine);
         return NULL;
     }