Add and use com_err error codes

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22556 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-02-01 16:38:46 +00:00
parent 3ff43c30b9
commit 3ad1f2d308
10 changed files with 61 additions and 51 deletions

View File

@@ -72,12 +72,12 @@ _wind_stringprep_map(const uint32_t *in, size_t in_len,
for (j = 0; j < s->val_len; ++j) {
if (o >= *out_len)
return -1;
return WIND_ERR_OVERRUN;
out[o++] = _wind_map_table_val[s->val_offset + j];
}
} else {
if (o >= *out_len)
return -1;
return WIND_ERR_OVERRUN;
out[o++] = in[i];
}