dhcp: Properly initialize struct when binding to interface

This commit is contained in:
Tobias Brunner 2021-02-16 15:22:18 +01:00
parent fbb70c968b
commit ff672c785b
1 changed files with 1 additions and 1 deletions

View File

@ -675,7 +675,7 @@ METHOD(dhcp_socket_t, destroy, void,
*/
static bool bind_to_device(int fd, char *iface)
{
struct ifreq ifreq;
struct ifreq ifreq = {};
if (strlen(iface) > sizeof(ifreq.ifr_name))
{