diff options
author | venaas <venaas> | 2007-01-04 13:44:10 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-01-04 13:44:10 +0000 |
commit | c32535c9631f7e408647638aebcb71dc9849308f (patch) | |
tree | 4b64eba9694304623ed62f02a3a429a1c96e46a4 /radsecproxy.c | |
parent | b1352f95528e36234066ce4fecbebf3b88f008d0 (diff) |
fixed minor bugs
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@24 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index d1ae41d..14d4128 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -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 */ |