diff --git a/contrib/src/pjproject/rfc6544.patch b/contrib/src/pjproject/rfc6544.patch
index b8b5cd151537a00c2f13edf69db5980aa9f63c4b..0e8ac3348bbf2c58ea24ed3ce4ddd54b8ff22c52 100644
--- a/contrib/src/pjproject/rfc6544.patch
+++ b/contrib/src/pjproject/rfc6544.patch
@@ -1376,7 +1376,7 @@ index c51dba771..b96390613 100644
  	    c->state == PJ_ICE_SESS_CHECK_STATE_WAITING)
  	{
 diff --git a/pjnath/src/pjnath/ice_strans.c b/pjnath/src/pjnath/ice_strans.c
-index 54ef8ba69..21be04bfe 100644
+index 54ef8ba69..f2d0aa5ed 100644
 --- a/pjnath/src/pjnath/ice_strans.c
 +++ b/pjnath/src/pjnath/ice_strans.c
 @@ -69,6 +69,7 @@ enum tp_type
@@ -2140,14 +2140,14 @@ index 54ef8ba69..21be04bfe 100644
 +    return;
 +  }
 +  data = (sock_user_data *)pj_stun_sock_get_user_data(stun_sock);
-+  if (data == NULL) {
++  if (!data) {
 +    /* We have disassociated ourselves from the STUN socket */
 +    return;
 +  }
 +
 +  comp = data->comp;
 +  ice_st = comp->ice_st;
-+  if (ice_st == NULL) {
++  if (!ice_st || !ice_st->ice) {
 +	  // Incorrect ICE
 +	  return;
 +  }