Commit 131f9b04 131f9b04eb3f00aecd5bcc26cfc623b088fffa50 by Sergey Poznyakoff

(util_localname): Minor fix

1 parent 72a5595a
...@@ -1004,7 +1004,7 @@ util_localname () ...@@ -1004,7 +1004,7 @@ util_localname ()
1004 name_len *= 2; 1004 name_len *= 2;
1005 name = realloc (name, name_len); 1005 name = realloc (name, name_len);
1006 } 1006 }
1007 if (status) 1007 if (status || name == NULL)
1008 { 1008 {
1009 mu_diag_output (MU_DIAG_CRIT, _("Cannot find out my own hostname")); 1009 mu_diag_output (MU_DIAG_CRIT, _("Cannot find out my own hostname"));
1010 exit (EX_OSERR); 1010 exit (EX_OSERR);
......