s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
[nivanova/samba-autobuild/.git] / source3 / smbd / conn.c
index 4e9ab91eaebca263f7a961b44d0d86a819d2e0dc..a3f66b36be7f5b50e614354edcf3aca544c9e57a 100644 (file)
@@ -133,7 +133,7 @@ connection_struct *conn_new(struct smbd_server_connection *sconn)
 
        if (sconn->using_smb2) {
                /* SMB2 */
-               if (!(conn=TALLOC_ZERO_P(NULL, connection_struct)) ||
+               if (!(conn=talloc_zero(NULL, connection_struct)) ||
                    !(conn->params = talloc(conn, struct share_params))) {
                        DEBUG(0,("TALLOC_ZERO() failed!\n"));
                        TALLOC_FREE(conn);
@@ -188,7 +188,7 @@ find_again:
                return NULL;
        }
 
-       if (!(conn=TALLOC_ZERO_P(NULL, connection_struct)) ||
+       if (!(conn=talloc_zero(NULL, connection_struct)) ||
            !(conn->params = talloc(conn, struct share_params))) {
                DEBUG(0,("TALLOC_ZERO() failed!\n"));
                TALLOC_FREE(conn);