X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systembsd.git;a=blobdiff_plain;f=src%2Finterfaces%2Fhostnamed%2Fhostnamed.c;h=19a196cc62929b2cdd346176a9b94ed7c267580f;hp=d8111d8367a59155e65399f43d7f07a908e5f1cc;hb=904d744df98f63a70ec8832764bdfba1adda073a;hpb=baf05b704a3fe5483b03771ee7659266172b02fe diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c index d8111d8..19a196c 100644 --- a/src/interfaces/hostnamed/hostnamed.c +++ b/src/interfaces/hostnamed/hostnamed.c @@ -29,7 +29,7 @@ #include #include -/* #include */ +#include #include "hostnamed-gen.h" #include "hostnamed.h" @@ -137,7 +137,8 @@ on_handle_set_hostname(Hostname1 *hn1_passed_interf, ret = TRUE; } - hostname1_complete_set_hostname(hn1_passed_interf, invoc); + if(ret) + hostname1_complete_set_hostname(hn1_passed_interf, invoc); if(proposed_hostname) g_free(proposed_hostname);