From: David Levine Date: Tue, 6 Sep 2016 21:36:16 +0000 (-0400) Subject: Protected use of setup_oauth_params() with #ifdef OAUTH_SUPPORT. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8c389633124dfde7bfe3b129b323a73c7d3dc57d?ds=sidebyside;hp=-c Protected use of setup_oauth_params() with #ifdef OAUTH_SUPPORT. --- 8c389633124dfde7bfe3b129b323a73c7d3dc57d 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 */ } /*