summaryrefslogtreecommitdiff
path: root/source3/smbd/seal.c
diff options
context:
space:
mode:
authorJeremy Allison <jeremy@jeremy-desktop.(none)>2008-12-23 12:11:12 -0800
committerJeremy Allison <jeremy@jeremy-desktop.(none)>2008-12-23 12:11:12 -0800
commitd0eeb9aa8db42ed1fc18024614560820354e6dfa (patch)
tree4b981ba4aa23fe1a9d53139a135018cbbd5871b5 /source3/smbd/seal.c
parent1966a947d3f8d432d3af5a9c0004e27561ae7f65 (diff)
downloadsamba-d0eeb9aa8db42ed1fc18024614560820354e6dfa.tar.gz
samba-d0eeb9aa8db42ed1fc18024614560820354e6dfa.tar.bz2
samba-d0eeb9aa8db42ed1fc18024614560820354e6dfa.zip
Fix more asprintf warnings and some error path errors.
Jeremy.
Diffstat (limited to 'source3/smbd/seal.c')
-rw-r--r--source3/smbd/seal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/seal.c b/source3/smbd/seal.c
index 3822ee191e..bd4d853885 100644
--- a/source3/smbd/seal.c
+++ b/source3/smbd/seal.c
@@ -128,8 +128,7 @@ static NTSTATUS get_srv_gss_creds(const char *service,
gss_OID_desc nt_hostbased_service =
{10, CONST_DISCARD(char *,"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x04")};
- asprintf(&host_princ_s, "%s@%s", service, name);
- if (host_princ_s == NULL) {
+ if (asprintf(&host_princ_s, "%s@%s", service, name) == -1) {
return NT_STATUS_NO_MEMORY;
}