Wrong size check in memcached_last_error_message

Bug #1284821 reported by Martin C. Martin on 2014-02-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
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  Edit
Everyone can see this information.

Other bug subscribers