| 1 | Fromscip-debian debian gsmlib 1.10+20120414.gita5e5ae9a-6 gsmlib/patches/`03-fix-cops.diff`#From.: Andrew Shadura <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 | Subjectscip-debian debian gsmlib 1.10+20120414.gita5e5ae9a-6 gsmlib/patches/`03-fix-cops.diff`#Subject.: Fix +COPS response parsing: additional numeric argument possible (Closes: #674856). |
| 3 | |
| 4 | diff --git a/gsmlib/gsm_me_ta.ccscip-debian debian gsmlib 1.10+20120414.gita5e5ae9a-6 gsmlib/upstream/`gsmlib/gsm_me_ta.cc`: b/gsmlib/gsm_me_ta.ccscip-debian debian gsmlib 1.10+20120414.gita5e5ae9a-6 gsmlib/upstream/`gsmlib/gsm_me_ta.cc`: |
| 5 | --- a/gsmlib/gsm_me_ta.cc |
| 6 | +++ b/gsmlib/gsm_me_ta.cc |
| 7 | @@ -376,6 +376,20 @@ std::vector<OPInfo> MeTa::getAvailableOP |
| 8 | else |
| 9 | throw e; |
| 10 | } |
| 11 | + try |
| 12 | + { |
| 13 | + opi._numericName = p.parseComma(); |
| 14 | + p.parseInt(true); |
| 15 | + } |
| 16 | + catch (GsmException &e) |
| 17 | + { |
| 18 | + if (e.getErrorClass() == ParserError) |
| 19 | + { |
| 20 | + /* okay */ |
| 21 | + } |
| 22 | + else |
| 23 | + throw e; |
| 24 | + } |
| 25 | if (expectClosingBracket) p.parseChar(')'); |
| 26 | result.push_back(opi); |
| 27 | if (! p.parseComma(true)) break; |