Commit c32535c9 authored by venaas's avatar venaas Committed by venaas
Browse files

fixed minor bugs

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@24 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent b1352f95
......@@ -930,7 +930,7 @@ char *parsehostport(char *s, char **host, char **port) {
if (!*host)
errx("malloc failed");
memcpy(*host, field, p - field);
*host[p - field] = '\0';
(*host)[p - field] = '\0';
if (ipv6) {
p++;
if (*p && *p != ':' && *p != ' ' && *p != '\t' && *p != '\n') {
......@@ -950,7 +950,7 @@ char *parsehostport(char *s, char **host, char **port) {
if (!*port)
errx("malloc failed");
memcpy(*port, field, p - field);
*port[p - field] = '\0';
(*port)[p - field] = '\0';
} else
*port = NULL;
return p;
......@@ -1116,7 +1116,7 @@ void getconfig(const char *serverfile, const char *clientfile) {
printf(" %s", *r);
printf("\n");
}
*count++;
(*count)++;
}
fclose(f);
}
......@@ -1194,8 +1194,8 @@ int main(int argc, char **argv) {
if (i == client_count) {
printf("No TLS clients defined, not starting TLS listener\n");
/* just hang around doing nothing, anything to do here? */
pthread_join(udpserverth, NULL);
return 0;
for (;;)
sleep(1000);
}
/* setting up server/daemon part */
......
Markdown is supported
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