diff options
author | Simon Rettberg | 2014-09-09 18:07:48 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-09-09 18:07:48 +0200 |
commit | bbdf2fba7b9ae0fa97aa164bcf84c1b88df38f32 (patch) | |
tree | 0bad2dc5bb0112940272b22a31f5dc4a0e8b2840 /helper.c | |
parent | Bail out on startup if an AD server is not reachable (diff) | |
download | ldadp-bbdf2fba7b9ae0fa97aa164bcf84c1b88df38f32.tar.gz ldadp-bbdf2fba7b9ae0fa97aa164bcf84c1b88df38f32.tar.xz ldadp-bbdf2fba7b9ae0fa97aa164bcf84c1b88df38f32.zip |
Add OpenSSL-Support (Client<->Proxy)
Diffstat (limited to 'helper.c')
-rw-r--r-- | helper.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -85,13 +85,10 @@ void helper_nonblock(const int fd) static void helper_printavaInt(struct AttributeValueAssertion* a,const char* rel) { - putchar('['); - printf("%.*s", (int)a->desc.l,a->desc.s); - putchar(' '); - printf("%s", rel); - putchar(' '); - printf("%.*s", (int)a->value.l,a->value.s); - putchar(']'); + printf("[%.*s %s", (int)a->desc.l, a->desc.s, rel); + if (a->value.l != 0 && a->value.s != NULL) { + printf(" %.*s]", (int)a->value.l,a->value.s); + } } void helper_printava(struct AttributeValueAssertion* a,const char* rel) |