summaryrefslogtreecommitdiffstats
path: root/0001-add-k5memdup.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-add-k5memdup.patch')
-rw-r--r--0001-add-k5memdup.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/0001-add-k5memdup.patch b/0001-add-k5memdup.patch
deleted file mode 100644
index e3b7cbb..0000000
--- a/0001-add-k5memdup.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 5f7844ece4f81ce06f861c65a48c4e9dbeaa215e Mon Sep 17 00:00:00 2001
-From: Nathaniel McCallum <npmccallum@redhat.com>
-Date: Tue, 9 Apr 2013 11:17:04 -0400
-Subject: [PATCH 1/4] add k5memdup()
-
----
- src/include/k5-int.h | 11 +++++++++++
- 1 file changed, 11 insertions(+)
-
-diff --git a/src/include/k5-int.h b/src/include/k5-int.h
-index 75e6783..7b5ab2c 100644
---- a/src/include/k5-int.h
-+++ b/src/include/k5-int.h
-@@ -2600,6 +2600,17 @@ k5alloc(size_t len, krb5_error_code *code)
- return ptr;
- }
-
-+/* Return a copy of the len bytes of memory at in; set *code to 0 or ENOMEM. */
-+static inline void *
-+k5memdup(const void *in, size_t len, krb5_error_code *code)
-+{
-+ void *ptr = k5alloc(len, code);
-+
-+ if (ptr != NULL)
-+ memcpy(ptr, in, len);
-+ return ptr;
-+}
-+
- krb5_error_code KRB5_CALLCONV
- krb5_get_credentials_for_user(krb5_context context, krb5_flags options,
- krb5_ccache ccache,
---
-1.8.2
-