projects
/
BearSSL
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d021b7e
)
Small fix on sample server code (displaying of IPv6 addresses).
author
Thomas Pornin
<pornin@bolet.org>
Wed, 7 Jun 2017 22:51:55 +0000
(
00:51
+0200)
committer
Thomas Pornin
<pornin@bolet.org>
Wed, 7 Jun 2017 22:51:55 +0000
(
00:51
+0200)
samples/server_basic.c
patch
|
blob
|
history
diff --git
a/samples/server_basic.c
b/samples/server_basic.c
index
3b4c312
..
e774c4d
100644
(file)
--- a/
samples/server_basic.c
+++ b/
samples/server_basic.c
@@
-204,8
+204,8
@@
accept_client(int server_fd)
tmp, sizeof tmp);
break;
case AF_INET6:
- name = inet_ntop(AF_INET,
- &((struct sockaddr_in
*)&sa)->sin
_addr,
+ name = inet_ntop(AF_INET
6
,
+ &((struct sockaddr_in
6 *)&sa)->sin6
_addr,
tmp, sizeof tmp);
break;
}