From 8c389633124dfde7bfe3b129b323a73c7d3dc57d Mon Sep 17 00:00:00 2001 From: David Levine Date: Tue, 6 Sep 2016 17:36:16 -0400 Subject: [PATCH] Protected use of setup_oauth_params() with #ifdef OAUTH_SUPPORT. --- uip/sendsbr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uip/sendsbr.c b/uip/sendsbr.c index ff203a44..3b729970 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -129,10 +129,15 @@ sendsbr (char **vec, int vecp, char *program, char *draft, struct stat *st, */ if (auth_svc) { +#ifdef OAUTH_SUPPORT const char *errmsg; if (setup_oauth_params(vec, nvecsp, auth_svc, &errmsg) != OK) { adios(NULL, errmsg); } +#else + adios(NULL, "sendfrom built without OAUTH_SUPPORT, " + "so auth_svc %s is not supported", auth_svc); +#endif /* OAUTH_SUPPORT */ } /* -- 2.56.0