projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In test-post-common.sh and test-mhmail, wait for fakesmtp to start
[mmh]
/
sbr
/
client.c
diff --git
a/sbr/client.c
b/sbr/client.c
index
7ae356a
..
7ab49a9
100644
(file)
--- a/
sbr/client.c
+++ b/
sbr/client.c
@@
-95,7
+95,7
@@
client (char *args, char *service, char *response, int len_response, int debug)
if (connect(sd, ai->ai_addr, ai->ai_addrlen) == 0) {
freeaddrinfo(res);
if (connect(sd, ai->ai_addr, ai->ai_addrlen) == 0) {
freeaddrinfo(res);
- client_freelist(ap);
+ client_freelist(arguments);
return sd;
}
return sd;
}
@@
-109,7
+109,7
@@
client (char *args, char *service, char *response, int len_response, int debug)
freeaddrinfo(res);
}
freeaddrinfo(res);
}
- client_freelist(ap);
+ client_freelist(arguments);
strncpy (response, "no servers available", len_response);
return NOTOK;
}
strncpy (response, "no servers available", len_response);
return NOTOK;
}
@@
-122,8
+122,7
@@
client (char *args, char *service, char *response, int len_response, int debug)
static void
client_freelist(char **list)
{
static void
client_freelist(char **list)
{
- while (*list++ != NULL)
- free(*list);
+ free(*list);
}
}