sms: Don't bother setting SCA if we can't query

This commit is contained in:
Denis Kenzior 2010-06-24 14:13:04 -05:00
parent 28b2c32dc7
commit 10e3ca440b
1 changed files with 2 additions and 1 deletions

View File

@ -256,7 +256,8 @@ static DBusMessage *sms_set_property(DBusConnection *conn, DBusMessage *msg,
if (strlen(value) == 0 || !valid_phone_number_format(value))
return __ofono_error_invalid_format(msg);
if (!sms->driver->sca_set)
if (sms->driver->sca_set == NULL ||
sms->driver->sca_query == NULL)
return __ofono_error_not_implemented(msg);
string_to_phone_number(value, &sca);