weberypf / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Memcache.c function conn *conn_new in line 421 there is an condition error #323

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

See Memcache.c function conn *conn_new line 421
    if (event_add(&c->event, 0) == -1) {
        if (conn_add_to_freelist(c)) {  ------should be  
                                        ------  if (!conn_add_to_freelist(c))
            conn_free(c);
        }
        perror("event_add");
        return NULL;
    }

Original issue reported on code.google.com by sunyz...@gmail.com on 28 May 2013 at 7:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
sorry, the bug is not exist, it's my misunderstanding of the code.
just ignore it.

Original comment by sunyz...@gmail.com on 29 May 2013 at 9:00

GoogleCodeExporter commented 8 years ago
ignoring.

Original comment by dorma...@rydia.net on 28 Jul 2013 at 2:23