Skip to content

Commit 2853db3

Browse files
committed
Fix socket leak in msc_status_engine_mac_address
One of the paths didn't close the socket.
1 parent a217cb1 commit 2853db3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apache2/msc_status_engine.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ int DSOLOCAL msc_status_engine_mac_address (unsigned char *mac)
225225
(unsigned char)ifr->ifr_addr.sa_data[4],
226226
(unsigned char)ifr->ifr_addr.sa_data[5]);
227227

228+
close( sock );
228229
goto end;
229230
}
230231
}

0 commit comments

Comments
 (0)