okay I was a little too excited
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Dec 2011 17:27:30 +0000 (17:27 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Dec 2011 17:27:30 +0000 (17:27 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@66042 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con_socks.c

index 21f199a..d44c1f5 100644 (file)
@@ -103,9 +103,9 @@ ecore_con_socks_read(Ecore_Con_Server *svr, unsigned char *buf, int num)
         DBG("SOCKS: %d bytes", num);
         if (num < 8)
           {
-             if (!svr->ecs_recvbuf) svr->ecs_recvbuf = eina_binbuf_manage_new_length(buf, num);
-             else eina_binbuf_append_length(svr->ecs_recvbuf, buf, num);
+             if (!svr->ecs_recvbuf) svr->ecs_recvbuf = eina_binbuf_new();
              if (!svr->ecs_recvbuf) goto error;
+             eina_binbuf_append_length(svr->ecs_recvbuf, buf, num);
              /* the slowest connection on earth */
              if (eina_binbuf_length_get(svr->ecs_recvbuf) != 8) return;
              data = eina_binbuf_string_get(svr->ecs_recvbuf);