Skip to content

Commit

Permalink
Fix nullptr cornercase in mtx-changer parser
Browse files Browse the repository at this point in the history
  • Loading branch information
arogge committed Sep 17, 2019
1 parent efb31b3 commit d89647d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/dird/sd_cmds.cc
Expand Up @@ -372,7 +372,7 @@ dlist *native_get_vol_list(UaContext *ua, StorageResource *store, bool listall,
* See if this is a parsable string from either list or listall
* e.g. at least f1:f2
*/
if (!field1 && !field2) {
if (!field1 || !field2) {
goto parse_error;
}

Expand Down

0 comments on commit d89647d

Please sign in to comment.