Coverity: 72739
Coverity: 72739
This commit is contained in:
@ -902,8 +902,10 @@ static void *uh_keydup(void* key) {
|
|||||||
|
|
||||||
rval->user = strdup(current_key->user);
|
rval->user = strdup(current_key->user);
|
||||||
|
|
||||||
if (rval->user == NULL)
|
if (rval->user == NULL) {
|
||||||
|
free(rval);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
memcpy(&rval->ipv4, ¤t_key->ipv4, sizeof(struct sockaddr_in));
|
memcpy(&rval->ipv4, ¤t_key->ipv4, sizeof(struct sockaddr_in));
|
||||||
memcpy(&rval->netmask, ¤t_key->netmask, sizeof(int));
|
memcpy(&rval->netmask, ¤t_key->netmask, sizeof(int));
|
||||||
|
|||||||
Reference in New Issue
Block a user