Changeset 596 for trunk/server/source3/lib/netapi/libnetapi.c
- Timestamp:
- Jul 2, 2011, 3:35:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/netapi/libnetapi.c
r414 r596 40 40 NET_API_STATUS status; 41 41 WERROR werr; 42 43 status = libnetapi_getctx(&ctx); 44 if (status != 0) { 42 TALLOC_CTX *frame = talloc_stackframe(); 43 44 status = libnetapi_getctx(&ctx); 45 if (status != 0) { 46 TALLOC_FREE(frame); 45 47 return status; 46 48 } … … 72 74 } 73 75 76 TALLOC_FREE(frame); 74 77 return r.out.result; 75 78 } … … 88 91 NET_API_STATUS status; 89 92 WERROR werr; 90 91 status = libnetapi_getctx(&ctx); 92 if (status != 0) { 93 TALLOC_CTX *frame = talloc_stackframe(); 94 95 status = libnetapi_getctx(&ctx); 96 if (status != 0) { 97 TALLOC_FREE(frame); 93 98 return status; 94 99 } … … 118 123 } 119 124 125 TALLOC_FREE(frame); 120 126 return r.out.result; 121 127 } … … 133 139 NET_API_STATUS status; 134 140 WERROR werr; 135 136 status = libnetapi_getctx(&ctx); 137 if (status != 0) { 141 TALLOC_CTX *frame = talloc_stackframe(); 142 143 status = libnetapi_getctx(&ctx); 144 if (status != 0) { 145 TALLOC_FREE(frame); 138 146 return status; 139 147 } … … 162 170 } 163 171 172 TALLOC_FREE(frame); 164 173 return r.out.result; 165 174 } … … 180 189 NET_API_STATUS status; 181 190 WERROR werr; 182 183 status = libnetapi_getctx(&ctx); 184 if (status != 0) { 191 TALLOC_CTX *frame = talloc_stackframe(); 192 193 status = libnetapi_getctx(&ctx); 194 if (status != 0) { 195 TALLOC_FREE(frame); 185 196 return status; 186 197 } … … 212 223 } 213 224 225 TALLOC_FREE(frame); 214 226 return r.out.result; 215 227 } … … 229 241 NET_API_STATUS status; 230 242 WERROR werr; 231 232 status = libnetapi_getctx(&ctx); 233 if (status != 0) { 243 TALLOC_CTX *frame = talloc_stackframe(); 244 245 status = libnetapi_getctx(&ctx); 246 if (status != 0) { 247 TALLOC_FREE(frame); 234 248 return status; 235 249 } … … 260 274 } 261 275 276 TALLOC_FREE(frame); 262 277 return r.out.result; 263 278 } … … 275 290 NET_API_STATUS status; 276 291 WERROR werr; 277 278 status = libnetapi_getctx(&ctx); 279 if (status != 0) { 292 TALLOC_CTX *frame = talloc_stackframe(); 293 294 status = libnetapi_getctx(&ctx); 295 if (status != 0) { 296 TALLOC_FREE(frame); 280 297 return status; 281 298 } … … 304 321 } 305 322 323 TALLOC_FREE(frame); 306 324 return r.out.result; 307 325 } … … 320 338 NET_API_STATUS status; 321 339 WERROR werr; 322 323 status = libnetapi_getctx(&ctx); 324 if (status != 0) { 340 TALLOC_CTX *frame = talloc_stackframe(); 341 342 status = libnetapi_getctx(&ctx); 343 if (status != 0) { 344 TALLOC_FREE(frame); 325 345 return status; 326 346 } … … 350 370 } 351 371 372 TALLOC_FREE(frame); 352 373 return r.out.result; 353 374 } … … 365 386 NET_API_STATUS status; 366 387 WERROR werr; 367 368 status = libnetapi_getctx(&ctx); 369 if (status != 0) { 388 TALLOC_CTX *frame = talloc_stackframe(); 389 390 status = libnetapi_getctx(&ctx); 391 if (status != 0) { 392 TALLOC_FREE(frame); 370 393 return status; 371 394 } … … 394 417 } 395 418 419 TALLOC_FREE(frame); 396 420 return r.out.result; 397 421 } … … 409 433 NET_API_STATUS status; 410 434 WERROR werr; 411 412 status = libnetapi_getctx(&ctx); 413 if (status != 0) { 435 TALLOC_CTX *frame = talloc_stackframe(); 436 437 status = libnetapi_getctx(&ctx); 438 if (status != 0) { 439 TALLOC_FREE(frame); 414 440 return status; 415 441 } … … 438 464 } 439 465 466 TALLOC_FREE(frame); 440 467 return r.out.result; 441 468 } … … 456 483 NET_API_STATUS status; 457 484 WERROR werr; 458 459 status = libnetapi_getctx(&ctx); 460 if (status != 0) { 485 TALLOC_CTX *frame = talloc_stackframe(); 486 487 status = libnetapi_getctx(&ctx); 488 if (status != 0) { 489 TALLOC_FREE(frame); 461 490 return status; 462 491 } … … 488 517 } 489 518 519 TALLOC_FREE(frame); 490 520 return r.out.result; 491 521 } … … 504 534 NET_API_STATUS status; 505 535 WERROR werr; 506 507 status = libnetapi_getctx(&ctx); 508 if (status != 0) { 536 TALLOC_CTX *frame = talloc_stackframe(); 537 538 status = libnetapi_getctx(&ctx); 539 if (status != 0) { 540 TALLOC_FREE(frame); 509 541 return status; 510 542 } … … 534 566 } 535 567 568 TALLOC_FREE(frame); 536 569 return r.out.result; 537 570 } … … 548 581 NET_API_STATUS status; 549 582 WERROR werr; 550 551 status = libnetapi_getctx(&ctx); 552 if (status != 0) { 583 TALLOC_CTX *frame = talloc_stackframe(); 584 585 status = libnetapi_getctx(&ctx); 586 if (status != 0) { 587 TALLOC_FREE(frame); 553 588 return status; 554 589 } … … 576 611 } 577 612 613 TALLOC_FREE(frame); 578 614 return r.out.result; 579 615 } … … 596 632 NET_API_STATUS status; 597 633 WERROR werr; 598 599 status = libnetapi_getctx(&ctx); 600 if (status != 0) { 634 TALLOC_CTX *frame = talloc_stackframe(); 635 636 status = libnetapi_getctx(&ctx); 637 if (status != 0) { 638 TALLOC_FREE(frame); 601 639 return status; 602 640 } … … 631 669 } 632 670 671 TALLOC_FREE(frame); 633 672 return r.out.result; 634 673 } … … 647 686 NET_API_STATUS status; 648 687 WERROR werr; 649 650 status = libnetapi_getctx(&ctx); 651 if (status != 0) { 688 TALLOC_CTX *frame = talloc_stackframe(); 689 690 status = libnetapi_getctx(&ctx); 691 if (status != 0) { 692 TALLOC_FREE(frame); 652 693 return status; 653 694 } … … 677 718 } 678 719 720 TALLOC_FREE(frame); 679 721 return r.out.result; 680 722 } … … 693 735 NET_API_STATUS status; 694 736 WERROR werr; 695 696 status = libnetapi_getctx(&ctx); 697 if (status != 0) { 737 TALLOC_CTX *frame = talloc_stackframe(); 738 739 status = libnetapi_getctx(&ctx); 740 if (status != 0) { 741 TALLOC_FREE(frame); 698 742 return status; 699 743 } … … 723 767 } 724 768 769 TALLOC_FREE(frame); 725 770 return r.out.result; 726 771 } … … 740 785 NET_API_STATUS status; 741 786 WERROR werr; 742 743 status = libnetapi_getctx(&ctx); 744 if (status != 0) { 787 TALLOC_CTX *frame = talloc_stackframe(); 788 789 status = libnetapi_getctx(&ctx); 790 if (status != 0) { 791 TALLOC_FREE(frame); 745 792 return status; 746 793 } … … 771 818 } 772 819 820 TALLOC_FREE(frame); 773 821 return r.out.result; 774 822 } … … 790 838 NET_API_STATUS status; 791 839 WERROR werr; 792 793 status = libnetapi_getctx(&ctx); 794 if (status != 0) { 840 TALLOC_CTX *frame = talloc_stackframe(); 841 842 status = libnetapi_getctx(&ctx); 843 if (status != 0) { 844 TALLOC_FREE(frame); 795 845 return status; 796 846 } … … 823 873 } 824 874 875 TALLOC_FREE(frame); 825 876 return r.out.result; 826 877 } … … 840 891 NET_API_STATUS status; 841 892 WERROR werr; 842 843 status = libnetapi_getctx(&ctx); 844 if (status != 0) { 893 TALLOC_CTX *frame = talloc_stackframe(); 894 895 status = libnetapi_getctx(&ctx); 896 if (status != 0) { 897 TALLOC_FREE(frame); 845 898 return status; 846 899 } … … 871 924 } 872 925 926 TALLOC_FREE(frame); 873 927 return r.out.result; 874 928 } … … 891 945 NET_API_STATUS status; 892 946 WERROR werr; 893 894 status = libnetapi_getctx(&ctx); 895 if (status != 0) { 947 TALLOC_CTX *frame = talloc_stackframe(); 948 949 status = libnetapi_getctx(&ctx); 950 if (status != 0) { 951 TALLOC_FREE(frame); 896 952 return status; 897 953 } … … 925 981 } 926 982 983 TALLOC_FREE(frame); 927 984 return r.out.result; 928 985 } … … 940 997 NET_API_STATUS status; 941 998 WERROR werr; 942 943 status = libnetapi_getctx(&ctx); 944 if (status != 0) { 999 TALLOC_CTX *frame = talloc_stackframe(); 1000 1001 status = libnetapi_getctx(&ctx); 1002 if (status != 0) { 1003 TALLOC_FREE(frame); 945 1004 return status; 946 1005 } … … 969 1028 } 970 1029 1030 TALLOC_FREE(frame); 971 1031 return r.out.result; 972 1032 } … … 985 1045 NET_API_STATUS status; 986 1046 WERROR werr; 987 988 status = libnetapi_getctx(&ctx); 989 if (status != 0) { 1047 TALLOC_CTX *frame = talloc_stackframe(); 1048 1049 status = libnetapi_getctx(&ctx); 1050 if (status != 0) { 1051 TALLOC_FREE(frame); 990 1052 return status; 991 1053 } … … 1015 1077 } 1016 1078 1079 TALLOC_FREE(frame); 1017 1080 return r.out.result; 1018 1081 } … … 1034 1097 NET_API_STATUS status; 1035 1098 WERROR werr; 1036 1037 status = libnetapi_getctx(&ctx); 1038 if (status != 0) { 1099 TALLOC_CTX *frame = talloc_stackframe(); 1100 1101 status = libnetapi_getctx(&ctx); 1102 if (status != 0) { 1103 TALLOC_FREE(frame); 1039 1104 return status; 1040 1105 } … … 1067 1132 } 1068 1133 1134 TALLOC_FREE(frame); 1069 1135 return r.out.result; 1070 1136 } … … 1083 1149 NET_API_STATUS status; 1084 1150 WERROR werr; 1085 1086 status = libnetapi_getctx(&ctx); 1087 if (status != 0) { 1151 TALLOC_CTX *frame = talloc_stackframe(); 1152 1153 status = libnetapi_getctx(&ctx); 1154 if (status != 0) { 1155 TALLOC_FREE(frame); 1088 1156 return status; 1089 1157 } … … 1113 1181 } 1114 1182 1183 TALLOC_FREE(frame); 1115 1184 return r.out.result; 1116 1185 } … … 1127 1196 NET_API_STATUS status; 1128 1197 WERROR werr; 1129 1130 status = libnetapi_getctx(&ctx); 1131 if (status != 0) { 1198 TALLOC_CTX *frame = talloc_stackframe(); 1199 1200 status = libnetapi_getctx(&ctx); 1201 if (status != 0) { 1202 TALLOC_FREE(frame); 1132 1203 return status; 1133 1204 } … … 1155 1226 } 1156 1227 1228 TALLOC_FREE(frame); 1157 1229 return r.out.result; 1158 1230 } … … 1174 1246 NET_API_STATUS status; 1175 1247 WERROR werr; 1176 1177 status = libnetapi_getctx(&ctx); 1178 if (status != 0) { 1248 TALLOC_CTX *frame = talloc_stackframe(); 1249 1250 status = libnetapi_getctx(&ctx); 1251 if (status != 0) { 1252 TALLOC_FREE(frame); 1179 1253 return status; 1180 1254 } … … 1208 1282 } 1209 1283 1284 TALLOC_FREE(frame); 1210 1285 return r.out.result; 1211 1286 } … … 1225 1300 NET_API_STATUS status; 1226 1301 WERROR werr; 1227 1228 status = libnetapi_getctx(&ctx); 1229 if (status != 0) { 1302 TALLOC_CTX *frame = talloc_stackframe(); 1303 1304 status = libnetapi_getctx(&ctx); 1305 if (status != 0) { 1306 TALLOC_FREE(frame); 1230 1307 return status; 1231 1308 } … … 1256 1333 } 1257 1334 1335 TALLOC_FREE(frame); 1258 1336 return r.out.result; 1259 1337 } … … 1272 1350 NET_API_STATUS status; 1273 1351 WERROR werr; 1274 1275 status = libnetapi_getctx(&ctx); 1276 if (status != 0) { 1352 TALLOC_CTX *frame = talloc_stackframe(); 1353 1354 status = libnetapi_getctx(&ctx); 1355 if (status != 0) { 1356 TALLOC_FREE(frame); 1277 1357 return status; 1278 1358 } … … 1302 1382 } 1303 1383 1384 TALLOC_FREE(frame); 1304 1385 return r.out.result; 1305 1386 } … … 1317 1398 NET_API_STATUS status; 1318 1399 WERROR werr; 1319 1320 status = libnetapi_getctx(&ctx); 1321 if (status != 0) { 1400 TALLOC_CTX *frame = talloc_stackframe(); 1401 1402 status = libnetapi_getctx(&ctx); 1403 if (status != 0) { 1404 TALLOC_FREE(frame); 1322 1405 return status; 1323 1406 } … … 1346 1429 } 1347 1430 1431 TALLOC_FREE(frame); 1348 1432 return r.out.result; 1349 1433 } … … 1361 1445 NET_API_STATUS status; 1362 1446 WERROR werr; 1363 1364 status = libnetapi_getctx(&ctx); 1365 if (status != 0) { 1447 TALLOC_CTX *frame = talloc_stackframe(); 1448 1449 status = libnetapi_getctx(&ctx); 1450 if (status != 0) { 1451 TALLOC_FREE(frame); 1366 1452 return status; 1367 1453 } … … 1390 1476 } 1391 1477 1478 TALLOC_FREE(frame); 1392 1479 return r.out.result; 1393 1480 } … … 1410 1497 NET_API_STATUS status; 1411 1498 WERROR werr; 1412 1413 status = libnetapi_getctx(&ctx); 1414 if (status != 0) { 1499 TALLOC_CTX *frame = talloc_stackframe(); 1500 1501 status = libnetapi_getctx(&ctx); 1502 if (status != 0) { 1503 TALLOC_FREE(frame); 1415 1504 return status; 1416 1505 } … … 1445 1534 } 1446 1535 1536 TALLOC_FREE(frame); 1447 1537 return r.out.result; 1448 1538 } … … 1462 1552 NET_API_STATUS status; 1463 1553 WERROR werr; 1464 1465 status = libnetapi_getctx(&ctx); 1466 if (status != 0) { 1554 TALLOC_CTX *frame = talloc_stackframe(); 1555 1556 status = libnetapi_getctx(&ctx); 1557 if (status != 0) { 1558 TALLOC_FREE(frame); 1467 1559 return status; 1468 1560 } … … 1493 1585 } 1494 1586 1587 TALLOC_FREE(frame); 1495 1588 return r.out.result; 1496 1589 } … … 1509 1602 NET_API_STATUS status; 1510 1603 WERROR werr; 1511 1512 status = libnetapi_getctx(&ctx); 1513 if (status != 0) { 1604 TALLOC_CTX *frame = talloc_stackframe(); 1605 1606 status = libnetapi_getctx(&ctx); 1607 if (status != 0) { 1608 TALLOC_FREE(frame); 1514 1609 return status; 1515 1610 } … … 1539 1634 } 1540 1635 1636 TALLOC_FREE(frame); 1541 1637 return r.out.result; 1542 1638 } … … 1553 1649 NET_API_STATUS status; 1554 1650 WERROR werr; 1555 1556 status = libnetapi_getctx(&ctx); 1557 if (status != 0) { 1651 TALLOC_CTX *frame = talloc_stackframe(); 1652 1653 status = libnetapi_getctx(&ctx); 1654 if (status != 0) { 1655 TALLOC_FREE(frame); 1558 1656 return status; 1559 1657 } … … 1581 1679 } 1582 1680 1681 TALLOC_FREE(frame); 1583 1682 return r.out.result; 1584 1683 } … … 1597 1696 NET_API_STATUS status; 1598 1697 WERROR werr; 1599 1600 status = libnetapi_getctx(&ctx); 1601 if (status != 0) { 1698 TALLOC_CTX *frame = talloc_stackframe(); 1699 1700 status = libnetapi_getctx(&ctx); 1701 if (status != 0) { 1702 TALLOC_FREE(frame); 1602 1703 return status; 1603 1704 } … … 1627 1728 } 1628 1729 1730 TALLOC_FREE(frame); 1629 1731 return r.out.result; 1630 1732 } … … 1644 1746 NET_API_STATUS status; 1645 1747 WERROR werr; 1646 1647 status = libnetapi_getctx(&ctx); 1648 if (status != 0) { 1748 TALLOC_CTX *frame = talloc_stackframe(); 1749 1750 status = libnetapi_getctx(&ctx); 1751 if (status != 0) { 1752 TALLOC_FREE(frame); 1649 1753 return status; 1650 1754 } … … 1675 1779 } 1676 1780 1781 TALLOC_FREE(frame); 1677 1782 return r.out.result; 1678 1783 } … … 1694 1799 NET_API_STATUS status; 1695 1800 WERROR werr; 1696 1697 status = libnetapi_getctx(&ctx); 1698 if (status != 0) { 1801 TALLOC_CTX *frame = talloc_stackframe(); 1802 1803 status = libnetapi_getctx(&ctx); 1804 if (status != 0) { 1805 TALLOC_FREE(frame); 1699 1806 return status; 1700 1807 } … … 1728 1835 } 1729 1836 1837 TALLOC_FREE(frame); 1730 1838 return r.out.result; 1731 1839 } … … 1745 1853 NET_API_STATUS status; 1746 1854 WERROR werr; 1747 1748 status = libnetapi_getctx(&ctx); 1749 if (status != 0) { 1855 TALLOC_CTX *frame = talloc_stackframe(); 1856 1857 status = libnetapi_getctx(&ctx); 1858 if (status != 0) { 1859 TALLOC_FREE(frame); 1750 1860 return status; 1751 1861 } … … 1776 1886 } 1777 1887 1888 TALLOC_FREE(frame); 1778 1889 return r.out.result; 1779 1890 } … … 1793 1904 NET_API_STATUS status; 1794 1905 WERROR werr; 1795 1796 status = libnetapi_getctx(&ctx); 1797 if (status != 0) { 1906 TALLOC_CTX *frame = talloc_stackframe(); 1907 1908 status = libnetapi_getctx(&ctx); 1909 if (status != 0) { 1910 TALLOC_FREE(frame); 1798 1911 return status; 1799 1912 } … … 1824 1937 } 1825 1938 1939 TALLOC_FREE(frame); 1826 1940 return r.out.result; 1827 1941 } … … 1844 1958 NET_API_STATUS status; 1845 1959 WERROR werr; 1846 1847 status = libnetapi_getctx(&ctx); 1848 if (status != 0) { 1960 TALLOC_CTX *frame = talloc_stackframe(); 1961 1962 status = libnetapi_getctx(&ctx); 1963 if (status != 0) { 1964 TALLOC_FREE(frame); 1849 1965 return status; 1850 1966 } … … 1879 1995 } 1880 1996 1997 TALLOC_FREE(frame); 1881 1998 return r.out.result; 1882 1999 } … … 1896 2013 NET_API_STATUS status; 1897 2014 WERROR werr; 1898 1899 status = libnetapi_getctx(&ctx); 1900 if (status != 0) { 2015 TALLOC_CTX *frame = talloc_stackframe(); 2016 2017 status = libnetapi_getctx(&ctx); 2018 if (status != 0) { 2019 TALLOC_FREE(frame); 1901 2020 return status; 1902 2021 } … … 1927 2046 } 1928 2047 2048 TALLOC_FREE(frame); 1929 2049 return r.out.result; 1930 2050 } … … 1941 2061 NET_API_STATUS status; 1942 2062 WERROR werr; 1943 1944 status = libnetapi_getctx(&ctx); 1945 if (status != 0) { 2063 TALLOC_CTX *frame = talloc_stackframe(); 2064 2065 status = libnetapi_getctx(&ctx); 2066 if (status != 0) { 2067 TALLOC_FREE(frame); 1946 2068 return status; 1947 2069 } … … 1969 2091 } 1970 2092 2093 TALLOC_FREE(frame); 1971 2094 return r.out.result; 1972 2095 } … … 1985 2108 NET_API_STATUS status; 1986 2109 WERROR werr; 1987 1988 status = libnetapi_getctx(&ctx); 1989 if (status != 0) { 2110 TALLOC_CTX *frame = talloc_stackframe(); 2111 2112 status = libnetapi_getctx(&ctx); 2113 if (status != 0) { 2114 TALLOC_FREE(frame); 1990 2115 return status; 1991 2116 } … … 2015 2140 } 2016 2141 2142 TALLOC_FREE(frame); 2017 2143 return r.out.result; 2018 2144 } … … 2030 2156 NET_API_STATUS status; 2031 2157 WERROR werr; 2032 2033 status = libnetapi_getctx(&ctx); 2034 if (status != 0) { 2158 TALLOC_CTX *frame = talloc_stackframe(); 2159 2160 status = libnetapi_getctx(&ctx); 2161 if (status != 0) { 2162 TALLOC_FREE(frame); 2035 2163 return status; 2036 2164 } … … 2059 2187 } 2060 2188 2189 TALLOC_FREE(frame); 2061 2190 return r.out.result; 2062 2191 } … … 2078 2207 NET_API_STATUS status; 2079 2208 WERROR werr; 2080 2081 status = libnetapi_getctx(&ctx); 2082 if (status != 0) { 2209 TALLOC_CTX *frame = talloc_stackframe(); 2210 2211 status = libnetapi_getctx(&ctx); 2212 if (status != 0) { 2213 TALLOC_FREE(frame); 2083 2214 return status; 2084 2215 } … … 2112 2243 } 2113 2244 2245 TALLOC_FREE(frame); 2114 2246 return r.out.result; 2115 2247 } … … 2128 2260 NET_API_STATUS status; 2129 2261 WERROR werr; 2130 2131 status = libnetapi_getctx(&ctx); 2132 if (status != 0) { 2262 TALLOC_CTX *frame = talloc_stackframe(); 2263 2264 status = libnetapi_getctx(&ctx); 2265 if (status != 0) { 2266 TALLOC_FREE(frame); 2133 2267 return status; 2134 2268 } … … 2158 2292 } 2159 2293 2294 TALLOC_FREE(frame); 2160 2295 return r.out.result; 2161 2296 } … … 2175 2310 NET_API_STATUS status; 2176 2311 WERROR werr; 2177 2178 status = libnetapi_getctx(&ctx); 2179 if (status != 0) { 2312 TALLOC_CTX *frame = talloc_stackframe(); 2313 2314 status = libnetapi_getctx(&ctx); 2315 if (status != 0) { 2316 TALLOC_FREE(frame); 2180 2317 return status; 2181 2318 } … … 2206 2343 } 2207 2344 2345 TALLOC_FREE(frame); 2208 2346 return r.out.result; 2209 2347 } … … 2220 2358 NET_API_STATUS status; 2221 2359 WERROR werr; 2222 2223 status = libnetapi_getctx(&ctx); 2224 if (status != 0) { 2360 TALLOC_CTX *frame = talloc_stackframe(); 2361 2362 status = libnetapi_getctx(&ctx); 2363 if (status != 0) { 2364 TALLOC_FREE(frame); 2225 2365 return status; 2226 2366 } … … 2248 2388 } 2249 2389 2390 TALLOC_FREE(frame); 2250 2391 return r.out.result; 2251 2392 } … … 2264 2405 NET_API_STATUS status; 2265 2406 WERROR werr; 2266 2267 status = libnetapi_getctx(&ctx); 2268 if (status != 0) { 2407 TALLOC_CTX *frame = talloc_stackframe(); 2408 2409 status = libnetapi_getctx(&ctx); 2410 if (status != 0) { 2411 TALLOC_FREE(frame); 2269 2412 return status; 2270 2413 } … … 2294 2437 } 2295 2438 2439 TALLOC_FREE(frame); 2296 2440 return r.out.result; 2297 2441 } … … 2315 2459 NET_API_STATUS status; 2316 2460 WERROR werr; 2317 2318 status = libnetapi_getctx(&ctx); 2319 if (status != 0) { 2461 TALLOC_CTX *frame = talloc_stackframe(); 2462 2463 status = libnetapi_getctx(&ctx); 2464 if (status != 0) { 2465 TALLOC_FREE(frame); 2320 2466 return status; 2321 2467 } … … 2351 2497 } 2352 2498 2499 TALLOC_FREE(frame); 2353 2500 return r.out.result; 2354 2501 } … … 2368 2515 NET_API_STATUS status; 2369 2516 WERROR werr; 2370 2371 status = libnetapi_getctx(&ctx); 2372 if (status != 0) { 2517 TALLOC_CTX *frame = talloc_stackframe(); 2518 2519 status = libnetapi_getctx(&ctx); 2520 if (status != 0) { 2521 TALLOC_FREE(frame); 2373 2522 return status; 2374 2523 } … … 2399 2548 } 2400 2549 2550 TALLOC_FREE(frame); 2401 2551 return r.out.result; 2402 2552 } … … 2412 2562 NET_API_STATUS status; 2413 2563 WERROR werr; 2414 2415 status = libnetapi_getctx(&ctx); 2416 if (status != 0) { 2564 TALLOC_CTX *frame = talloc_stackframe(); 2565 2566 status = libnetapi_getctx(&ctx); 2567 if (status != 0) { 2568 TALLOC_FREE(frame); 2417 2569 return status; 2418 2570 } … … 2439 2591 } 2440 2592 2593 TALLOC_FREE(frame); 2441 2594 return r.out.result; 2442 2595 } … … 2455 2608 NET_API_STATUS status; 2456 2609 WERROR werr; 2457 2458 status = libnetapi_getctx(&ctx); 2459 if (status != 0) { 2610 TALLOC_CTX *frame = talloc_stackframe(); 2611 2612 status = libnetapi_getctx(&ctx); 2613 if (status != 0) { 2614 TALLOC_FREE(frame); 2460 2615 return status; 2461 2616 } … … 2485 2640 } 2486 2641 2642 TALLOC_FREE(frame); 2487 2643 return r.out.result; 2488 2644 } … … 2502 2658 NET_API_STATUS status; 2503 2659 WERROR werr; 2504 2505 status = libnetapi_getctx(&ctx); 2506 if (status != 0) { 2660 TALLOC_CTX *frame = talloc_stackframe(); 2661 2662 status = libnetapi_getctx(&ctx); 2663 if (status != 0) { 2664 TALLOC_FREE(frame); 2507 2665 return status; 2508 2666 } … … 2533 2691 } 2534 2692 2535 return r.out.result; 2536 } 2537 2693 TALLOC_FREE(frame); 2694 return r.out.result; 2695 } 2696
Note:
See TracChangeset
for help on using the changeset viewer.