update copyright notices
authorJohn Kohl <jtkohl@mit.edu>
Tue, 19 Feb 1991 10:10:26 +0000 (10:10 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 19 Feb 1991 10:10:26 +0000 (10:10 +0000)
use xfree rather than free((char *))

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1725 dc483132-0cff-0310-8789-dd5450dbe970

14 files changed:
src/admin/edit/dump.c
src/admin/edit/kdb5_edit.c
src/kdc/do_as_req.c
src/kdc/do_tgs_req.c
src/kdc/kdc_util.c
src/lib/crypto/des/fin_rndkey.c
src/lib/crypto/des/random_key.c
src/lib/crypto/des/string2key.c
src/lib/kdb/decrypt_key.c
src/lib/kdb/encrypt_key.c
src/lib/kdb/kdb_dbm.c
src/lib/krb5/asn.1/encode.c
src/lib/krb5/ccache/file/fcc_sseq.c
src/lib/krb5/krb/copy_data.c

index 2340344628ace8ea95c6a59fcbd682e857ee77d4..fa612f0dc4e0675a13bb746b60be49716ae91e8d 100644 (file)
@@ -1,28 +1,28 @@
 /*
- * $source: /afs/athena.mit.edu/astaff/project/krb5/src/admin/edit/rcs/dump.c,v $
- * $author: tytso $
+ * $Source$
+ * $Author$
  *
- * copyright 1990 by the massachusetts institute of technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
- * for copying and distribution information, please see the file
+ * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
  *
- * dump a kdc database
+ * Dump a KDC database
  */
 
-#if !defined(lint) && !defined(saber)
+#if !defined(lint) && !defined(SABER)
 static char rcsid_kdb_edit_c[] =
-"$id: dump.c,v 1.6 91/01/15 18:25:41 tytso exp locker: tytso $";
+"$Id$";
 #endif /* !lint & !saber */
 
-#include <krb5/copyright.h>
 #include <krb5/krb5.h>
 #include <krb5/kdb.h>
 #include <krb5/kdb_dbm.h>
 #include <krb5/libos-proto.h>
 #include <krb5/asn1.h>
 #include <krb5/config.h>
-#include <krb5/sysincl.h>              /* for maxpathlen */
+#include <krb5/sysincl.h>              /* for MAXPATHLEN */
 #include <krb5/ext-proto.h>
 #include <krb5/func-proto.h>
 
@@ -269,7 +269,7 @@ void load_db(argc, argv)
        cleanup:
                free(name);
                free(mod_name);
-               free((char *)entry.key.contents);
+               xfree(entry.key.contents);
        }
        if (retval = krb5_db_fini()) {
                com_err(argv[0], retval,
index b0b19890d81eeb39fe63454fdccced301e2fb7a0..0908ea0f6e6957441c71fcf084e78cc59810484d 100644 (file)
@@ -2,7 +2,7 @@
  * $Source$
  * $Author$
  *
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -15,7 +15,6 @@ static char rcsid_kdb_edit_c[] =
 "$Id$";
 #endif /* !lint & !SABER */
 
-#include <krb5/copyright.h>
 #include <krb5/krb5.h>
 #include <krb5/kdb.h>
 #include <krb5/kdb_dbm.h>
@@ -386,7 +385,7 @@ OLDDECLARG(struct saltblock *, salt)
     if (retval = krb5_timeofday(&newentry.mod_date)) {
        com_err(argv[0], retval, "while fetching date");
        memset((char *)newentry.key.contents, 0, newentry.key.length);
-       free((char *)newentry.key.contents);
+       xfree(newentry.key.contents);
        return;
     }
     newentry.attributes = mblock.flags;
@@ -402,7 +401,7 @@ OLDDECLARG(struct saltblock *, salt)
     
     retval = krb5_db_put_principal(&newentry, &one);
     memset((char *)newentry.key.contents, 0, newentry.key.length);
-    free((char *)newentry.key.contents);
+    xfree(newentry.key.contents);
     if (retval) {
        com_err(argv[0], retval, "while storing entry for '%s'\n", argv[1]);
        return;
@@ -437,7 +436,7 @@ krb5_pointer infop;
                                              &master_random);
                memset((char *)master_keyblock.contents, 0,
                       master_keyblock.length);
-               free((char *) master_keyblock.contents);
+               xfree(master_keyblock.contents);
                master_keyblock.contents = NULL;
        }
        krb5_free_principal(master_princ);
@@ -525,7 +524,7 @@ char *dbname;
                                           &master_encblock)) {
        com_err(pname, retval, "while verifying master key");
        memset((char *)master_keyblock.contents, 0, master_keyblock.length);
-       free((char *)master_keyblock.contents);
+       xfree(master_keyblock.contents);
        valid_master_key = 0;
        dbactive = TRUE;
        return(1);
@@ -534,7 +533,7 @@ char *dbname;
                                  &master_keyblock)) {
        com_err(pname, retval, "while processing master key");
        memset((char *)master_keyblock.contents, 0, master_keyblock.length);
-       free((char *)master_keyblock.contents);
+       xfree(master_keyblock.contents);
        valid_master_key = 0;
        dbactive = TRUE;
        return(1);
@@ -545,7 +544,7 @@ char *dbname;
        com_err(pname, retval, "while initializing random key generator");
        (void) krb5_finish_key(&master_encblock);
        memset((char *)master_keyblock.contents, 0, master_keyblock.length);
-       free((char *)master_keyblock.contents);
+       xfree(master_keyblock.contents);
        valid_master_key = 0;
        dbactive = TRUE;
        return(1);
@@ -700,7 +699,7 @@ char *argv[];
            printf("'%s' added to keytab '%s'\n",
                   pname, ktname);
        memset((char *)newentry.key.contents, 0, newentry.key.length);
-       free((char *)newentry.key.contents);
+       xfree(newentry.key.contents);
     cleanall:
            krb5_db_free_principal(&dbentry, nentries);
     cleanmost:
@@ -802,7 +801,7 @@ char *argv[];
        if (key.keytype != 1) {
                com_err(argv[0], 0, "%s does not have a DES key!", pname);
                memset((char *)key.contents, 0, key.length);
-               free((char *)key.contents);
+               xfree(key.contents);
                continue;
        }
        fwrite(argv[i], strlen(argv[1]) + 1, 1, fout); /* p.name */
@@ -812,7 +811,7 @@ char *argv[];
        fwrite((char *)key.contents, 8, 1, fout);
        printf("'%s' added to V4 srvtab '%s'\n", pname, ktname);
        memset((char *)key.contents, 0, key.length);
-       free((char *)key.contents);
+       xfree(key.contents);
     cleanall:
            krb5_db_free_principal(&dbentry, nentries);
     cleanmost:
@@ -1121,7 +1120,7 @@ OLDDECLARG(int, salttype)
     add_key(argv, princ, &tempkey, ++vno, &salt);
     xfree(salt.saltdata.data);
     memset((char *)tempkey.contents, 0, tempkey.length);
-    free((char *)tempkey.contents);
+    xfree(tempkey.contents);
     return;
 }
 
index 4d4c46e23ea80428a44a9ce7a7df2187039cebb3..7215c355958035c1e9f52ecb2ce963ee4cef91d5 100644 (file)
@@ -2,7 +2,8 @@
  * $Source$
  * $Author$
  *
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -15,8 +16,6 @@ static char rcsid_do_as_req_c[] =
 "$Id$";
 #endif /* !lint & !SABER */
 
-#include <krb5/copyright.h>
-
 #include <krb5/krb5.h>
 #include <krb5/kdb.h>
 #include <krb5/libos-proto.h>
@@ -156,7 +155,7 @@ krb5_data **response;                       /* filled in with a response packet */
                   krb5_db_free_principal(&server, 1); \
                   memset((char *)session_key->contents, 0, \
                          session_key->length); \
-                  free((char *)session_key->contents); \
+                  xfree(session_key->contents); \
                   session_key->contents = 0; }
 
 
@@ -252,7 +251,7 @@ krb5_data **response;                       /* filled in with a response packet */
     }
     retval = krb5_encrypt_tkt_part(&encrypting_key, &ticket_reply);
     memset((char *)encrypting_key.contents, 0, encrypting_key.length);
-    free((char *)encrypting_key.contents);
+    xfree(encrypting_key.contents);
     if (retval) {
        cleanup();
        return retval;
@@ -264,7 +263,7 @@ krb5_data **response;                       /* filled in with a response packet */
 #define cleanup() {krb5_db_free_principal(&client, 1); \
                   memset((char *)session_key->contents, 0, \
                          session_key->length); \
-                  free((char *)session_key->contents); \
+                  xfree(session_key->contents); \
                   session_key->contents = 0; \
                   memset(ticket_reply.enc_part.ciphertext.data, 0, \
                         ticket_reply.enc_part.ciphertext.length); \
@@ -315,7 +314,7 @@ krb5_data **response;                       /* filled in with a response packet */
 #define cleanup() {krb5_db_free_principal(&client, 1); \
                   memset((char *)session_key->contents, 0, \
                          session_key->length); \
-                  free((char *)session_key->contents); \
+                  xfree(session_key->contents); \
                   session_key->contents = 0; \
                   memset(ticket_reply.enc_part.ciphertext.data, 0, \
                         ticket_reply.enc_part.ciphertext.length); \
@@ -357,7 +356,7 @@ krb5_data **response;                       /* filled in with a response packet */
     retval = krb5_encode_kdc_rep(KRB5_AS_REP, &reply_encpart,
                                 &encrypting_key,  &reply, response);
     memset((char *)encrypting_key.contents, 0, encrypting_key.length);
-    free((char *)encrypting_key.contents);
+    xfree(encrypting_key.contents);
     cleanup();
     return retval;
 }
index 83b35e833b456f3f15875cd6bacbfc4c86094211..57e79090385261cee5f2f44cd5e0b737a12f848d 100644 (file)
@@ -16,8 +16,6 @@ static char rcsid_do_tgs_req_c[] =
 "$Id$";
 #endif /* !lint & !SABER */
 
-#include <krb5/copyright.h>
-
 #include <krb5/krb5.h>
 #include <krb5/kdb.h>
 #include <krb5/libos-proto.h>
@@ -186,7 +184,7 @@ tgt_again:
 #define cleanup() { krb5_db_free_principal(&server, 1); \
                   memset((char *)session_key->contents, 0, \
                          session_key->length); \
-                  free((char *)session_key->contents); \
+                  xfree(session_key->contents); \
                   session_key->contents = 0; }
 
     ticket_reply.server = request->server; /* XXX careful for realm... */
@@ -452,7 +450,7 @@ tgt_again:
 #define cleanup() { krb5_db_free_principal(&server, 1); \
                   memset((char *)session_key->contents, 0, \
                          session_key->length); \
-                  free((char *)session_key->contents); \
+                  xfree(session_key->contents); \
                   session_key->contents = 0; \
                   if (newtransited) free(enc_tkt_reply.transited.tr_contents.data);}
 
@@ -485,7 +483,7 @@ tgt_again:
        retval = krb5_encrypt_tkt_part(&encrypting_key, &ticket_reply);
 
        memset((char *)encrypting_key.contents, 0, encrypting_key.length);
-       free((char *)encrypting_key.contents);
+       xfree(encrypting_key.contents);
 
        if (retval) {
            tkt_cleanup();
@@ -527,7 +525,7 @@ tgt_again:
                                 header_ticket->enc_part2->session,
                                 &reply, response);
     memset((char *)session_key->contents, 0, session_key->length);
-    free((char *)session_key->contents);
+    xfree(session_key->contents);
     tkt_cleanup();
     session_key->contents = 0;
     return retval;
index 00eecc8138843e1899ec77a9d3f26f0f3f5a6e93..96a3c70065366656866c78118b6dddb2aa79be83 100644 (file)
@@ -3,6 +3,7 @@
  * $Author$
  *
  * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -15,7 +16,6 @@ static char rcsid_kdc_util_c[] =
 "$Id$";
 #endif /* !lint & !SABER */
 
-#include <krb5/copyright.h>
 #include <krb5/krb5.h>
 #include <krb5/kdb.h>
 #include <krb5/asn1.h>
@@ -212,7 +212,7 @@ krb5_ticket **ticket;
     if (freeprinc) {
        krb5_db_free_principal(&server, nprincs);
        memset((char *)encrypting_key.contents, 0, encrypting_key.length);
-       free((char *)encrypting_key.contents);
+       xfree(encrypting_key.contents);
     }
     if (retval) {
        cleanup_apreq();
index 21b3bea8fc75e3fccb0d37e37f2d63ad91043de3..089cd9c44310b8d5c0bb788386d98ababadf8fa3 100644 (file)
@@ -2,7 +2,8 @@
  * $Source$
  * $Author$
  *
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -14,7 +15,6 @@ static char rcsid_fin_rndkey_c[] =
 "$Id$";
 #endif /* !lint & !SABER */
 
-#include <krb5/copyright.h>
 #include <krb5/krb5.h>
 #include <krb5/mit-des.h>
 #include <krb5/ext-proto.h>
@@ -27,7 +27,7 @@ krb5_error_code mit_des_finish_random_key (DECLARG(krb5_pointer *, seed))
 OLDDECLARG(krb5_pointer *, seed)
 {
     memset((char *)*seed, 0, sizeof(mit_des_random_key_seed) );
-    free((char *)*seed);
+    xfree(*seed);
     *seed = 0;
     return 0;          /* XXX init_random_key */
 }
index bc0b06e9a5546c7182e65087577b85ea7819543e..ee46b7d974ab44b2375eff13742a0b81b22c83bd 100644 (file)
@@ -2,7 +2,8 @@
  * $Source$
  * $Author$
  *
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -14,8 +15,6 @@ static char rcsid_random_key_c[] =
 "$Id$";
 #endif /* !lint & !SABER */
 
-#include <krb5/copyright.h>
-
 #include <krb5/krb5.h>
 #include <krb5/ext-proto.h>
 
@@ -35,7 +34,7 @@ OLDDECLARG(krb5_keyblock **, keyblock)
     if (!(randkey = (krb5_keyblock *)malloc(sizeof(*randkey))))
        return ENOMEM;
     if (!(randkey->contents = (krb5_octet *)malloc(sizeof(mit_des_cblock)))) {
-       free((char *)randkey);
+       xfree(randkey);
        return ENOMEM;
     }
     randkey->length = sizeof(mit_des_cblock);
index d21443ab4e0d5123c543a91e7ea5dbbb8127faf9..7453ddeacc53fa4b23792b23902d0eaf28a53536 100644 (file)
@@ -2,7 +2,8 @@
  * $Source$
  * $Author$
  *
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -15,8 +16,6 @@ static char rcsid_string2key_c[] =
 "$Id$";
 #endif /* !lint & !SABER */
 
-#include <krb5/copyright.h>
-
 #include <krb5/krb5.h>
 #include <krb5/ext-proto.h>
 
@@ -75,7 +74,7 @@ OLDDECLARG(const krb5_data *, salt)
        return(ENOMEM);
 
 #define cleanup() {memset(keyblock->contents, 0, sizeof(mit_des_cblock));\
-                      (void) free((char *) keyblock->contents);}
+                      xfree(keyblock->contents);}
 
     keyblock->keytype = KEYTYPE_DES;
     keyblock->length = sizeof(mit_des_cblock);
index e942941f1d39b8db761cf45f9f9f3477f281f3b6..fb35dd1d0f9fbe4a97ca5492b620b69ca9afd97e 100644 (file)
@@ -2,7 +2,8 @@
  * $Source$
  * $Author$
  *
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -15,7 +16,6 @@ static char rcsid_decrypt_key_c [] =
 "$Id$";
 #endif /* !lint & !SABER */
 
-#include <krb5/copyright.h>
 #include <krb5/krb5.h>
 #include <krb5/ext-proto.h>
 #include <krb5/kdb.h>
@@ -57,13 +57,13 @@ krb5_keyblock *out;
                                              sizeof(in->length)),
                              (krb5_pointer) out->contents,
                              in->length-sizeof(in->length), eblock, 0)) {
-       free((char *)out->contents);
+       xfree(out->contents);
        out->contents = 0;
        out->length = 0;
        return retval;
     }
     if (out->length < 0) {
-       free((char *)out->contents);
+       xfree(out->contents);
        out->contents = 0;
        out->length = 0;
        return KRB5_KDB_INVALIDKEYSIZE;
index 22000ec3101c9e7f5035c82e170e492e1a0ccdff..6d9724f2380d94f8c089977a6e37c349afe9c3a3 100644 (file)
@@ -2,7 +2,8 @@
  * $Source$
  * $Author$
  *
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -15,7 +16,6 @@ static char rcsid_encrypt_key_c [] =
 "$Id$";
 #endif /* !lint & !SABER */
 
-#include <krb5/copyright.h>
 #include <krb5/krb5.h>
 #include <krb5/ext-proto.h>
 #include <krb5/kdb.h>
@@ -54,7 +54,7 @@ krb5_encrypted_keyblock *out;
     out->length += sizeof(out->length);
     out->contents = (krb5_octet *)malloc(out->length);
     if (!out->contents) {
-       free((char *)tmpin.contents);
+       xfree(tmpin.contents);
        out->contents = 0;
        out->length = 0;
        return ENOMEM;
@@ -67,9 +67,9 @@ krb5_encrypted_keyblock *out;
                          (krb5_pointer) (((char *) out->contents) +
                                          sizeof(out->length)),
                          tmpin.length, eblock, 0);
-    free((char *)tmpin.contents);
+    xfree(tmpin.contents);
     if (retval) {
-       free((char *)out->contents);
+       xfree(out->contents);
        out->contents = 0;
        out->length = 0;
     }
index 95a92d90d19f2c3cd18355ed9d65567418c37137..f29dac649d6fba2a1f16745e9cbafb8058fd59af 100644 (file)
@@ -2,7 +2,8 @@
  * $Source$
  * $Author$ 
  *
- * Copyright 1988,1989,1990 by the Massachusetts Institute of Technology. 
+ * Copyright 1988,1989,1990,1991 by the Massachusetts Institute of Technology. 
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>. 
@@ -13,7 +14,6 @@ static char rcsid_krb_dbm_c[] =
 "$Id$";
 #endif /* lint */
 
-#include <krb5/copyright.h>
 #include <krb5/krb5.h>
 #include <krb5/dbm.h>
 #include <krb5/kdb.h>
@@ -522,7 +522,7 @@ krb5_db_entry *entry;
     if (keysize != entry->key.length) {
        krb5_free_principal(princ);
        krb5_free_principal(mod_princ);
-       free((char *)entry->key.contents);
+       xfree(entry->key.contents);
        (void) memset((char *) entry, 0, sizeof(*entry));
        return KRB5_KDB_TRUNCATED_RECORD;
     }
@@ -534,7 +534,7 @@ krb5_db_entry *entry;
        if (!(entry->salt = (krb5_octet *)malloc(entry->salt_length))) {
            krb5_free_principal(princ);
            krb5_free_principal(mod_princ);
-           free((char *)entry->key.contents);
+           xfree(entry->key.contents);
            (void) memset((char *) entry, 0, sizeof(*entry));
            return KRB5_KDB_TRUNCATED_RECORD;
        }
@@ -549,9 +549,9 @@ krb5_db_entry *entry;
 {
     /* erase the key */
     memset((char *)entry->key.contents, 0, entry->key.length);
-    free((char *)entry->key.contents);
+    xfree(entry->key.contents);
     if (entry->salt_length)
-       free((char *)entry->salt);
+       xfree(entry->salt);
 
     krb5_free_principal(entry->principal);
     krb5_free_principal(entry->mod_name);
index a51d596dec4d9512e92eba9293a6b8efab595838..63bad48cc50e9d842254b1d66ee73a8a88496450 100644 (file)
@@ -2,7 +2,8 @@
  * $Source$
  * $Author$
  *
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -15,7 +16,6 @@ static char rcsid_encode_c[] =
 "$Id$";
 #endif /* lint || saber */
 
-#include <krb5/copyright.h>
 #include <isode/psap.h>
 #include <krb5/krb5.h>
 #include <krb5/asn1.h>
@@ -70,7 +70,7 @@ void (*free_translation) PROTOTYPE((krb5_pointer ));
     alldatout:
        free((*data_out)->data);
     datout:
-       free((char *)*data_out);
+       xfree(*data_out);
        *data_out = 0;
     peout:
        pe_free(pe);
index 589e626682ff04742ffd0d3fa8a0ed5f7430f434..aee5ffcebe819322e3d7c063a784fa42c3eaabb9 100644 (file)
@@ -3,6 +3,7 @@
  * $Author$
  *
  * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -14,8 +15,6 @@
 static char rcsid_fcc_sseq_c[] = "$Id$";
 #endif /* !lint && !SABER */
 
-#include <krb5/copyright.h>
-
 #include "fcc.h"
 
 /*
@@ -45,7 +44,7 @@ krb5_fcc_start_seq_get(id, cursor)
      if (OPENCLOSE(id)) {
          ret = krb5_fcc_open_file(id, FCC_OPEN_RDONLY);
          if (ret) {
-             free((char *)fcursor);
+             xfree(fcursor);
              return ret;
          }
      }
index 3e17ce563152a71127116e3da84051e5421871b1..0e21c2c6c065cd8b2f589b0d59b8e9b71cda1180 100644 (file)
@@ -2,7 +2,8 @@
  * $Source$
  * $Author$
  *
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -15,7 +16,6 @@ static char rcsid_copy_data_c[] =
 "$Id$";
 #endif /* !lint & !SABER */
 
-#include <krb5/copyright.h>
 #include <krb5/krb5.h>
 #include <krb5/ext-proto.h>
 
@@ -34,7 +34,7 @@ krb5_data **outdata;
 
     *tempdata = *indata;
     if (!(tempdata->data = malloc(tempdata->length))) {
-       free((char *)tempdata);
+       xfree(tempdata);
        return ENOMEM;
     }
     memcpy((char *)tempdata->data, (char *)indata->data, tempdata->length);