Fix coding style violations
[m6w6/libmemcached] / libmemcached / memcached_stats.c
index 9069bccbed6e0a74bb2cae1977b420b4e8fd10ab..3ad236d2108c347f8eb778c52e7211442b8cc222 100644 (file)
@@ -340,6 +340,12 @@ memcached_stat_st *memcached_stat(memcached_st *ptr, char *args, memcached_retur
   memcached_return rc;
   memcached_stat_st *stats;
 
+  if (ptr->flags & MEM_USE_UDP)
+  {
+    *error= MEMCACHED_NOT_SUPPORTED;
+    return NULL;
+  }
+
   if (ptr->call_malloc)
     stats= (memcached_stat_st *)ptr->call_malloc(ptr, sizeof(memcached_stat_st)*(ptr->number_of_hosts));
   else