]> diplodocus.org Git - nmh/commitdiff
Protected use of setup_oauth_params() with #ifdef OAUTH_SUPPORT.
authorDavid Levine <levinedl@acm.org>
Tue, 6 Sep 2016 21:36:16 +0000 (17:36 -0400)
committerDavid Levine <levinedl@acm.org>
Tue, 6 Sep 2016 21:36:16 +0000 (17:36 -0400)
uip/sendsbr.c

index ff203a441aea8a82df2a1c15d5a2f00cde8273a4..3b7299703a464ca4b3b938da4e50f3fdf2077e05 100644 (file)
@@ -129,10 +129,15 @@ sendsbr (char **vec, int vecp, char *program, char *draft, struct stat *st,
         */
 
        if (auth_svc) {
         */
 
        if (auth_svc) {
+#ifdef OAUTH_SUPPORT
                const char *errmsg;
                if (setup_oauth_params(vec, nvecsp, auth_svc, &errmsg) != OK) {
                        adios(NULL, errmsg);
                }
                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 */
        }
 
         /*
        }
 
         /*