Wrong size check in memcached_last_error_message

Bug #1284821 reported by Martin C. Martin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
New
Undecided
Unassigned

Bug Description

memcached_last_error_message contains the following:

      if (memc->error_messages->size == 0)
      {
        return memc->error_messages->message;
      }

      return memcached_strerror(memc, memc->error_messages->rc);

The check against "size" should be "size > 0", a size of zero means the string is empty.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.