Fixed gw_send_authentication_to_backend expecting a negative return value when dcb_write fails.
This commit is contained in:
@ -731,8 +731,8 @@ int gw_send_authentication_to_backend(
|
|||||||
|
|
||||||
rv = dcb_write(dcb, buffer);
|
rv = dcb_write(dcb, buffer);
|
||||||
|
|
||||||
if (rv < 0) {
|
if (rv == 0) {
|
||||||
return rv;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user