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