summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 0275402..151eaca 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -764,7 +764,7 @@ check_http (void)
764 764
765 /* optionally send the authentication info */ 765 /* optionally send the authentication info */
766 if (strlen(user_auth)) { 766 if (strlen(user_auth)) {
767 auth = base64 (user_auth, strlen (user_auth)); 767 base64_encode_alloc (user_auth, strlen (user_auth), &auth);
768 asprintf (&buf, "%sAuthorization: Basic %s\r\n", buf, auth); 768 asprintf (&buf, "%sAuthorization: Basic %s\r\n", buf, auth);
769 } 769 }
770 770
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index d3e4f42..3310bce 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -366,7 +366,8 @@ main (int argc, char **argv)
366 } 366 }
367 367
368 /* encode authuser with base64 */ 368 /* encode authuser with base64 */
369 abuf = base64 (authuser, strlen(authuser)); 369 base64_encode_alloc (authuser, strlen(authuser), &abuf);
370 /* FIXME: abuf shouldn't have enough space to strcat a '\r\n' into it. */
370 strcat (abuf, "\r\n"); 371 strcat (abuf, "\r\n");
371 my_send(abuf, strlen(abuf)); 372 my_send(abuf, strlen(abuf));
372 if (verbose) 373 if (verbose)
@@ -386,7 +387,8 @@ main (int argc, char **argv)
386 break; 387 break;
387 } 388 }
388 /* encode authpass with base64 */ 389 /* encode authpass with base64 */
389 abuf = base64 (authpass, strlen(authpass)); 390 base64_encode_alloc (authpass, strlen(authpass), &abuf);
391 /* FIXME: abuf shouldn't have enough space to strcat a '\r\n' into it. */
390 strcat (abuf, "\r\n"); 392 strcat (abuf, "\r\n");
391 my_send(abuf, strlen(abuf)); 393 my_send(abuf, strlen(abuf));
392 if (verbose) { 394 if (verbose) {