Replace asprintf() by xasprintf().
[oweals/tinc.git] / src / uml_socket / device.c
index 62a6f2eb65a762f4a940a7e77b13e4dddf91fc69..de0b4a556a310a5a6ebae534963d968b1c9523a4 100644 (file)
@@ -71,7 +71,7 @@ bool setup_device(void)
        cp();
 
        if(!get_config_string(lookup_config(config_tree, "Device"), &device))
-               asprintf(&device, LOCALSTATEDIR "/run/%s.umlsocket", identname);
+               xasprintf(&device, LOCALSTATEDIR "/run/%s.umlsocket", identname);
 
        get_config_string(lookup_config(config_tree, "Interface"), &iface);