diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-03-02 22:44:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-03-02 22:44:59 +0100 |
commit | 67f42cc8fd8712f24ade4e03f0e989e797fb73c3 (patch) | |
tree | be0f788f8e0b05ca7f20f40656e9dd9b63ce709a /src | |
parent | a6d885783ce9e98af3f30358b31cae72d59cc640 (diff) | |
download | libmicrohttpd-67f42cc8fd8712f24ade4e03f0e989e797fb73c3.tar.gz libmicrohttpd-67f42cc8fd8712f24ade4e03f0e989e797fb73c3.zip |
make asan happier
Diffstat (limited to 'src')
-rw-r--r-- | src/microhttpd/test_upgrade.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index a1f58b1d..a0703441 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -1077,7 +1077,7 @@ test_upgrade (int flags, | |||
1077 | 1077 | ||
1078 | /* make address sanitizer happy */ | 1078 | /* make address sanitizer happy */ |
1079 | memcpy (&port, | 1079 | memcpy (&port, |
1080 | &dinfo->port, | 1080 | dinfo /* ->port */, |
1081 | sizeof (port)); | 1081 | sizeof (port)); |
1082 | if (-1 == (pid = gnutlscli_connect (&tls_fork_sock, | 1082 | if (-1 == (pid = gnutlscli_connect (&tls_fork_sock, |
1083 | port))) | 1083 | port))) |
@@ -1105,7 +1105,7 @@ test_upgrade (int flags, | |||
1105 | 1105 | ||
1106 | /* make address sanitizer happy */ | 1106 | /* make address sanitizer happy */ |
1107 | memcpy (&flags, | 1107 | memcpy (&flags, |
1108 | &real_flags->flags, | 1108 | real_flags /* ->flags */, |
1109 | sizeof (flags)); | 1109 | sizeof (flags)); |
1110 | run_mhd_loop (d, flags); | 1110 | run_mhd_loop (d, flags); |
1111 | } | 1111 | } |