summaryrefslogtreecommitdiff
path: root/librpc/ndr
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-02-28 14:58:16 +1100
committerAmitay Isaacs <amitay@gmail.com>2012-03-02 00:24:49 +1100
commitad1ef7948668d17c03009fad10d2d3fd01cacb77 (patch)
tree8225296e110f75f43949141b04731587c3814043 /librpc/ndr
parentf5b041fc04f158d0462995d592359fa6bd74b2ff (diff)
downloadsamba-ad1ef7948668d17c03009fad10d2d3fd01cacb77.tar.gz
samba-ad1ef7948668d17c03009fad10d2d3fd01cacb77.tar.bz2
samba-ad1ef7948668d17c03009fad10d2d3fd01cacb77.zip
ndr: Fix the error messages, add correct data type name
Diffstat (limited to 'librpc/ndr')
-rw-r--r--librpc/ndr/ndr_dnsp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/librpc/ndr/ndr_dnsp.c b/librpc/ndr/ndr_dnsp.c
index daf8fffdef..347fbed3fd 100644
--- a/librpc/ndr/ndr_dnsp.c
+++ b/librpc/ndr/ndr_dnsp.c
@@ -48,7 +48,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_name(struct ndr_pull *ndr, int ndr_flag
ret = talloc_strdup(ndr->current_mem_ctx, "");
if (!ret) {
- return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp");
+ return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp_name");
}
total_len = 1;
@@ -61,7 +61,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_name(struct ndr_pull *ndr, int ndr_flag
}
ret = talloc_realloc(ndr->current_mem_ctx, ret, char, newlen);
if (!ret) {
- return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp");
+ return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp_name");
}
NDR_CHECK(ndr_pull_bytes(ndr, (uint8_t *)&ret[total_len-1], sublen));
if (i != count-1) {
@@ -72,10 +72,10 @@ _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_name(struct ndr_pull *ndr, int ndr_flag
}
NDR_CHECK(ndr_pull_uint8(ndr, ndr_flags, &termination));
if (termination != 0) {
- return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp - not NUL terminated");
+ return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp_name - not NUL terminated");
}
if (ndr->offset > raw_offset + len) {
- return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp - overrun by %u bytes",
+ return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp_name - overrun by %u bytes",
ndr->offset - (raw_offset + len));
}
/* there could be additional pad bytes */
@@ -142,12 +142,12 @@ _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_string(struct ndr_pull *ndr, int ndr_fl
ret = talloc_strdup(ndr->current_mem_ctx, "");
if (!ret) {
- return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp");
+ return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp_string");
}
total_len = 1;
ret = talloc_zero_array(ndr->current_mem_ctx, char, len+1);
if (!ret) {
- return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp");
+ return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp_string");
}
NDR_CHECK(ndr_pull_bytes(ndr, (uint8_t *)&ret[total_len-1], len));
total_len = len;