Unverified Commit b1c77a7e authored by Benjamin Cheng's avatar Benjamin Cheng
Browse files

Use is_null()

parent 5d8a4461
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ where
            .ssl_context()
            .ex_data(callback_idx)
            .expect("BUG: psk callback missing") as *const F;
        let hint = if hint != ptr::null() {
        let hint = if !hint.is_null() {
            Some(CStr::from_ptr(hint).to_bytes())
        } else {
            None