Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset aff587f in mainline


Ignore:
Timestamp:
2011-09-02T15:22:24Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
c1a0488
Parents:
58cbb0c8
Message:

Fix missing check in loc_service_add_to_cat().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loc/loc.c

    r58cbb0c8 raff587f  
    12311231        svc = loc_service_find_id(svc_id);
    12321232       
     1233        if (cat == NULL || svc == NULL) {
     1234                fibril_mutex_unlock(&cdir.mutex);
     1235                fibril_mutex_unlock(&services_list_mutex);
     1236                async_answer_0(iid, ENOENT);
     1237                return;
     1238        }
     1239       
    12331240        fibril_mutex_lock(&cat->mutex);
    12341241        retval = category_add_service(cat, svc);
Note: See TracChangeset for help on using the changeset viewer.