# | Line 546 | Line 546 | find_or_add_userhost(const char *host) | |
---|---|---|
546 | ||
547 | userhost = mp_pool_get(userhost_pool); | |
548 | ||
549 | – | memset(userhost, 0, sizeof(*userhost)); |
549 | strlcpy(userhost->host, host, sizeof(userhost->host)); | |
550 | hash_add_userhost(userhost); | |
551 | ||
# | Line 598 | Line 597 | add_user_host(const char *user, const ch | |
597 | } | |
598 | ||
599 | nameh = mp_pool_get(namehost_pool); | |
600 | < | memset(nameh, 0, sizeof(*nameh)); |
600 | > | |
601 | strlcpy(nameh->name, user, sizeof(nameh->name)); | |
602 | ||
603 | nameh->gcount = 1; |
– | Removed lines |
+ | Added lines |
< | Changed lines (old) |
> | Changed lines (new) |