Fix a type-punned warning
[ira/wip.git] / source3 / smbd / reply.c
index 05de4d4c26e71adf1868c72599ada7b9f2f5ac45..1f73b2f40fcf1a5dee9e8e37d8b93649c1f44332 100644 (file)
@@ -477,7 +477,7 @@ static bool netbios_session_retarget(const char *name, int name_type)
                goto fail;
        }
 
                goto fail;
        }
 
-       in_addr = (struct sockaddr_in *)&retarget_addr;
+       in_addr = (struct sockaddr_in *)(void *)&retarget_addr;
 
        _smb_setlen(outbuf, 6);
        SCVAL(outbuf, 0, 0x84);
 
        _smb_setlen(outbuf, 6);
        SCVAL(outbuf, 0, 0x84);