Fixed gw_send_authentication_to_backend expecting a negative return value when dcb_write fails.

This commit is contained in:
Markus Makela
2015-08-31 10:23:51 +03:00
parent ccfc6fe780
commit c564b40c54

View File

@ -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;
} }