Make bind failure messages unique

This helps someone know which part of the code is complaining.

Signed-hostap: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear 2012-04-06 12:10:36 +03:00 committed by Jouni Malinen
parent bae489d292
commit 9d05374796
7 changed files with 12 additions and 11 deletions

View file

@ -173,7 +173,7 @@ struct l2_packet_data * l2_packet_init(
addr.sun_family = AF_UNIX;
os_strlcpy(addr.sun_path, l2->own_socket_path, sizeof(addr.sun_path));
if (bind(l2->fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
perror("bind(PF_UNIX)");
perror("l2-pkt-privsep: bind(PF_UNIX)");
goto fail;
}