Be on the safe side with initialisation of c->name.
This commit is contained in:
parent
92c4a28d7d
commit
dc09f6fe89
2 changed files with 6 additions and 3 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue