Skip to content

Commit a4ea4e6

Browse files
authored
Merge pull request #3412 from airween/v2/fixdarwinbuild
fix: remove unused condition from msc_status_engine.c
2 parents 981d225 + 0cff9e9 commit a4ea4e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/msc_status_engine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ int DSOLOCAL msc_status_engine_mac_address (unsigned char *mac)
173173
for ( ifap = ifaphead; ifap; ifap = ifap->ifa_next ) {
174174
struct sockaddr_dl* sdl = (struct sockaddr_dl*)ifap->ifa_addr;
175175
if ( sdl && ( sdl->sdl_family == AF_LINK ) && ( sdl->sdl_type == IFT_ETHER )
176-
&& mac[0] && mac[1] && mac[2] && i < 6) {
176+
&& mac[0] && mac[1] && mac[2]) {
177177

178178
apr_snprintf(mac, MAC_ADDRESS_SIZE, "%02x:%02x:%02x:%02x:%02x:%02x",
179179
(unsigned char)LLADDR(sdl)[0],

0 commit comments

Comments
 (0)