compiler quietening
[exim.git] / src / src / transports / smtp_socks.c
index 22cfbecb4379c544a9935e5efd2d64bd46f6026a..c410eceec8f972317c49c59d818eb3c60ad37534 100644 (file)
@@ -220,7 +220,7 @@ const uschar * state;
 uschar buf[24];
 socks_opts proxies[32];                        /* max #proxies handled */
 unsigned nproxies;
-socks_opts * sob;
+socks_opts * sob = NULL;
 unsigned size;
 blob early_data;
 
@@ -257,6 +257,7 @@ for (nproxies = 0;
   while ((option = string_nextinlist(&proxy_spec, &subsep, NULL, 0)))
     socks_option(sob, option);
   }
+if (!sob) return -1;
 
 /* Set up the socks protocol method-selection message,
 for sending on connection */