talloc: Test that talloc magic differs between processes.
[Samba.git] / lib / talloc / test_magic_differs_helper.c
blob6798827abb1d27ecf481072216ee015a3b142b9f
1 #include <stdio.h>
2 #include "talloc.h"
4 /*
5 * This program is called by a testing shell script in order to ensure that
6 * if the library is loaded into different processes it uses different magic
7 * values in order to thwart security attacks.
8 */
9 int main(int argc, char *argv[]) {
10 printf("%i\n", talloc_test_get_magic());
11 return 0;