File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,12 @@ void CommissionerDiscoveryController::OnUserDirectedCommissioningRequest(UDCClie
155
155
return ;
156
156
}
157
157
158
+ if (state.GetProductId () == 0 && state.GetVendorId () == 0 ) {
159
+ // this is an invalid request and should be ignored
160
+ ChipLogDetail (Controller, " Ignoring the request as it's invalid. product and vendor id cannot be 0" );
161
+ return ;
162
+ }
163
+
158
164
mReady = false ;
159
165
Platform::CopyString (mCurrentInstance , state.GetInstanceName ());
160
166
mPendingConsent = true ;
@@ -163,7 +169,7 @@ void CommissionerDiscoveryController::OnUserDirectedCommissioningRequest(UDCClie
163
169
sizeof (rotatingIdString));
164
170
if (err != CHIP_NO_ERROR)
165
171
{
166
- ChipLogError (AppServer , " On UDC: could not convert rotating id to hex" );
172
+ ChipLogError (Controller , " On UDC: could not convert rotating id to hex" );
167
173
rotatingIdString[0 ] = ' \0 ' ;
168
174
}
169
175
You can’t perform that action at this time.
0 commit comments