Fix snd/recv when number is higher then domain of value.
[awesomized/libmemcached] / libmemcached / csl / context.h
index 77fac219bdd79ed2ecca1fd634af9e76c5ca5935..12e028ddcaeac95c74c33073e273d3957a1cff50 100644 (file)
@@ -61,6 +61,8 @@ public:
     memc= memc_arg;
     init_scanner();
     rc= MEMCACHED_SUCCESS;
+
+    memc->state.is_parsing= true;
   }
 
   bool end()
@@ -106,6 +108,7 @@ public:
   ~Context()
   {
     destroy_scanner();
+    memc->state.is_parsing= false;
   }
 
   yytokentype previous_token;