Skip to content

Commit

Permalink
Merge pull request google#23 from matttbe/alg_bind_err
Browse files Browse the repository at this point in the history
Alg bind err
  • Loading branch information
dcaratti authored Nov 15, 2020
2 parents ddcbb2a + 7a85a3f commit 910aeb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtests/net/packetdrill/mptcp_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ static int linux_af_alg_socket(const char *type, const char *name)
memset(&sa, 0, sizeof(sa));
sa.salg_family = AF_ALG;
strncpy((char *) sa.salg_type, type, sizeof(sa.salg_type));
strncpy((char *) sa.salg_name, name, sizeof(sa.salg_type));
strncpy((char *) sa.salg_name, name, sizeof(sa.salg_name));
if (bind(s, (struct sockaddr *) &sa, sizeof(sa)) < 0) {
DEBUGP("%s: Failed to bind AF_ALG socket(%s,%s): %s",
die("%s: Failed to bind AF_ALG socket(%s,%s): %s\n",
__func__, type, name, strerror(errno));
close(s);
return -1;
Expand Down

0 comments on commit 910aeb8

Please sign in to comment.