diff options
| author | Fuwn <[email protected]> | 2022-02-03 10:54:07 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-02-03 10:54:07 +0000 |
| commit | 3c3546602d44b551239440a58f9d175d8af8b978 (patch) | |
| tree | c15f7e6af1c24983a8c2a2e00fd1ba5255eb1d2c | |
| parent | fix: move to c99 (diff) | |
| download | archived-viv-3c3546602d44b551239440a58f9d175d8af8b978.tar.xz archived-viv-3c3546602d44b551239440a58f9d175d8af8b978.zip | |
chore(ssl): link stackoverflow question
| -rw-r--r-- | viv/ssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -33,6 +33,7 @@ VIV_SSL_connection_context VIV_SSL_open_connection(const char **hostname, int po } connection_context.socket = socket(PF_INET, SOCK_STREAM, 0); + /* https://stackoverflow.com/a/37129097/14452787 */ memset(&addr, 0, sizeof(addr)); /* bzero(&addr, sizeof(addr)); */ addr.sin_family = AF_INET; addr.sin_port = htons(port); |