Commit 2fad1185 authored by Lubomir Bulej's avatar Lubomir Bulej
Browse files

Expect non-NULL addrinfo

parent 863fb7ad
......@@ -39,6 +39,8 @@ __connection_init (struct connection * connection, const int sockfd) {
*/
struct connection *
connection_open (struct addrinfo * addr) {
assert (addr != NULL);
//
// Create a stream socket to the given address and connect to the server.
// Upon connection, disable the Nagle algorithm to avoid delays on the
......
......@@ -36,6 +36,8 @@ __connection_init (struct connection * connection, const int sockfd) {
*/
struct connection *
connection_open (struct addrinfo * addr) {
assert (addr != NULL);
//
// Create a stream socket to the given address and connect to the server.
// Upon connection, disable the Nagle algorithm to avoid delays on the
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment