diff --git a/libs/freetdm/src/ozmod/ozmod_libpri/lpwrap_pri.c b/libs/freetdm/src/ozmod/ozmod_libpri/lpwrap_pri.c index 1c1a31d2c3..c75533b223 100644 --- a/libs/freetdm/src/ozmod/ozmod_libpri/lpwrap_pri.c +++ b/libs/freetdm/src/ozmod/ozmod_libpri/lpwrap_pri.c @@ -128,6 +128,7 @@ static int __pri_lpwrap_read(struct pri *pri, void *buf, int buflen) zap_clear_flag(spri, LPWRAP_PRI_READY); return -1; } + spri->errs = 0; res = (int)len; memset(&((unsigned char*)buf)[res],0,2); res+=2;