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