NT_STATUS_CONNECTION_IN_USE);
smbd_server_connection_terminate(xconn,
"passed connection");
- /*
- * smbd_server_connection_terminate() should not return!
- */
- smb_panic(__location__);
+ exit_server_cleanly("connection passed");
return;
}
if (!NT_STATUS_IS_OK(status)) {
* The connection was passed to another process
*/
smbd_server_connection_terminate(xconn, nt_errstr(status));
- /*
- * smbd_server_connection_terminate() should not return!
- */
- smb_panic(__location__);
+ exit_server_cleanly("connection passed");
return;
}
* The connection was passed to another process
*/
smbd_server_connection_terminate(xconn, nt_errstr(status));
- /*
- * smbd_server_connection_terminate() should not return!
- */
- smb_panic(__location__);
+ exit_server_cleanly("connection passed");
return;
}