Be on the safe side with initialisation of c->name.

This commit is contained in:
Guus Sliepen 2005-05-04 15:51:45 +00:00
parent 92c4a28d7d
commit dc09f6fe89
2 changed files with 6 additions and 3 deletions

View file

@ -76,8 +76,11 @@ bool id_h(connection_t *c)
c->name);
return false;
}
} else
} else {
if(c->name)
free(c->name);
c->name = xstrdup(name);
}
/* Check if version matches */